diff options
Diffstat (limited to 'src/gui/speechbubble.cpp')
-rw-r--r-- | src/gui/speechbubble.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp index a6bb5563..7eedce1c 100644 --- a/src/gui/speechbubble.cpp +++ b/src/gui/speechbubble.cpp @@ -65,8 +65,6 @@ SpeechBubble::SpeechBubble(): // LEEOR / TODO: This causes an exception error. //moveToBottom(getParent()); - - mSpeechBox->setTextWrapped( "" ); } void SpeechBubble::setCaption(const std::string &name, const gcn::Color &color) @@ -78,8 +76,7 @@ void SpeechBubble::setCaption(const std::string &name, const gcn::Color &color) void SpeechBubble::setText(std::string mText) { - mSpeechBox->setMinWidth(140); - mSpeechBox->setTextWrapped(mText); + mSpeechBox->setTextWrapped(mText, 130); const int fontHeight = getFont()->getHeight(); const int numRows = mSpeechBox->getNumberOfRows() + 1; |