From 4750bbc3bc1988c18e45b4f68ec47655dd53f05a Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 4 Sep 2008 13:14:51 +0000 Subject: [PATCH] Fixed wrongly used overload - was taking number instead of character. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1533 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CGUITable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Irrlicht/CGUITable.cpp b/source/Irrlicht/CGUITable.cpp index 49e97858..2feb8749 100644 --- a/source/Irrlicht/CGUITable.cpp +++ b/source/Irrlicht/CGUITable.cpp @@ -1009,11 +1009,11 @@ void CGUITable::breakText(const core::stringw& text, core::stringw& brokenText, if (c[0] == L'\n') break; - pos += font->getDimension( c ).Width; + pos += font->getDimension(c).Width; if ( pos > maxLength ) break; - if ( font->getDimension( (line + c[0]).c_str() ).Width > maxLengthDots ) + if ( font->getDimension( (line + c).c_str() ).Width > maxLengthDots ) lineDots = line; line += c[0];