summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/textbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/textbox.cpp b/src/gui/textbox.cpp
index 98096112..b36897d6 100644
--- a/src/gui/textbox.cpp
+++ b/src/gui/textbox.cpp
@@ -132,7 +132,7 @@ void TextBox::setTextWrapped(const std::string &text, int minDimension)
const std::string word = line.substr(spacePos + 1);
const int length = getFont()->getWidth(word);
- if ((length > xpos || length > minWidth) && mMinWidth != length)
+ if ((length > xpos || length > minWidth) && length > mMinWidth)
{
mMinWidth = length;
wrappedStream.clear();