From 63886946dceb5e3a4345810d35327e9767cba913 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Wed, 28 Jan 2009 19:19:25 -0700 Subject: Fix for a mistake in one of the logicc statements in the last commit. Signed-off-by: Ira Rice --- src/gui/textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/textbox.cpp') 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(); -- cgit v1.2.3-70-g09d2