diff options
Diffstat (limited to 'src/gui/speechbubble.cpp')
-rw-r--r-- | src/gui/speechbubble.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp index c5c653e7..0ccbebc0 100644 --- a/src/gui/speechbubble.cpp +++ b/src/gui/speechbubble.cpp @@ -59,8 +59,13 @@ SpeechBubble::SpeechBubble()//: mSpeechBox->setTextWrapped( "" ); } -void SpeechBubble::setText(const std::string mText) +void SpeechBubble::setText(std::string mText) { + while (mText[0] == ' ') + { + mText = mText.substr(1, mText.size()); + } + mSpeechBox->setMinWidth(140); mSpeechBox->setTextWrapped( mText ); |