summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-28 19:19:25 -0700
committerIra Rice <irarice@gmail.com>2009-01-28 19:19:25 -0700
commit63886946dceb5e3a4345810d35327e9767cba913 (patch)
treebbf21354a3e9b1f0618dec939a4d58fbd79adb54
parent7a99b87f6f5e42072fa268876795289ab75a271e (diff)
downloadmana-63886946dceb5e3a4345810d35327e9767cba913.tar.gz
mana-63886946dceb5e3a4345810d35327e9767cba913.tar.bz2
mana-63886946dceb5e3a4345810d35327e9767cba913.tar.xz
mana-63886946dceb5e3a4345810d35327e9767cba913.zip
Fix for a mistake in one of the logicc statements in the last commit.
Signed-off-by: Ira Rice <irarice@gmail.com>
-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();