From ed6a1d2fb487580fe3aee5ed7e0cf3fe091032f8 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Wed, 4 Feb 2009 13:26:52 -0700 Subject: 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 --- src/gui/speechbubble.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2