From 9d3b975bcb84ad1c61d628de2804751c0d0707dd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 May 2011 01:27:37 +0300 Subject: Fix code style and missing members initialisations. --- src/guichan/font.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/guichan/font.cpp') 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(); -- cgit v1.2.3-70-g09d2