From 59270a5883ed88e3abe07dc8aae1397d0841b314 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 12 Oct 2008 07:18:17 +0000 Subject: Trimmed out an unneeded line in the text wrapping code. If it was working properly (which calling the function again with a wider window size should do), it'd do something, but since it doesn't do what it was intended to do, there's no reason to waste CPU cycles over it . --- src/gui/textbox.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gui/textbox.cpp b/src/gui/textbox.cpp index f2d9b6ee..3507273a 100644 --- a/src/gui/textbox.cpp +++ b/src/gui/textbox.cpp @@ -135,10 +135,6 @@ void TextBox::setTextWrapped(const std::string &text) minWidth = xpos; } mMinWidth = minWidth; - if (minWidth > mMinWidth) - { - setTextWrapped(text); - } gcn::TextBox::setText(wrappedStream.str()); } -- cgit v1.2.3-70-g09d2