summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-04 13:26:52 -0700
committerIra Rice <irarice@gmail.com>2009-02-04 13:26:52 -0700
commited6a1d2fb487580fe3aee5ed7e0cf3fe091032f8 (patch)
tree3d6e3558f6f615e2947fe798f7be75a037b8b112
parent98f8f12759fe0aaf05bc124e5682903503fe3fe6 (diff)
downloadmana-client-ed6a1d2fb487580fe3aee5ed7e0cf3fe091032f8.tar.gz
mana-client-ed6a1d2fb487580fe3aee5ed7e0cf3fe091032f8.tar.bz2
mana-client-ed6a1d2fb487580fe3aee5ed7e0cf3fe091032f8.tar.xz
mana-client-ed6a1d2fb487580fe3aee5ed7e0cf3fe091032f8.zip
Fix for the last commit, where I forgot to modify the set dimension and
set content size functions to use the width variable. Signed-off-by: Ira Rice <irarice@gmail.com>
-rw-r--r--src/gui/speechbubble.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp
index 1137af4b..0e58825c 100644
--- a/src/gui/speechbubble.cpp
+++ b/src/gui/speechbubble.cpp
@@ -79,10 +79,8 @@ void SpeechBubble::setText(std::string mText)
{
if (width < mSpeechBox->getMinWidth())
width = mSpeechBox->getMinWidth();
- setContentSize(mSpeechBox->getMinWidth() + fontHeight,
- (numRows * fontHeight) + 6);
- mSpeechArea->setDimension(gcn::Rectangle(4, fontHeight + 3,
- mSpeechBox->getMinWidth() + 5,
+ setContentSize(width + fontHeight, (numRows * fontHeight) + 6);
+ mSpeechArea->setDimension(gcn::Rectangle(4, fontHeight + 3, width + 5,
(numRows * fontHeight)));
}
else