summaryrefslogtreecommitdiff
path: root/src/gui/textbox.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-12 07:18:17 +0000
committerIra Rice <irarice@gmail.com>2008-10-12 07:18:17 +0000
commit59270a5883ed88e3abe07dc8aae1397d0841b314 (patch)
tree5fddf6fc30f8ff668c3328a25910c36427dc9c14 /src/gui/textbox.cpp
parent9f5f8e5c6579f3ecc7a6c245e063d5f2d96c62ff (diff)
downloadmana-client-59270a5883ed88e3abe07dc8aae1397d0841b314.tar.gz
mana-client-59270a5883ed88e3abe07dc8aae1397d0841b314.tar.bz2
mana-client-59270a5883ed88e3abe07dc8aae1397d0841b314.tar.xz
mana-client-59270a5883ed88e3abe07dc8aae1397d0841b314.zip
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 .
Diffstat (limited to 'src/gui/textbox.cpp')
-rw-r--r--src/gui/textbox.cpp4
1 files changed, 0 insertions, 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());
}