summaryrefslogtreecommitdiff
path: root/src/guichan/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/font.cpp')
-rw-r--r--src/guichan/font.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/guichan/font.cpp b/src/guichan/font.cpp
index 5583cdb57..aa5924832 100644
--- a/src/guichan/font.cpp
+++ b/src/guichan/font.cpp
@@ -58,12 +58,10 @@ namespace gcn
for (i = 0; i < text.size(); ++i)
{
- size = getWidth(text.substr(0,i));
+ size = getWidth(text.substr(0, i));
if (size > x)
- {
return i;
- }
}
return text.size();