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
master
hybrid 2008-09-04 13:14:51 +00:00
parent a512894396
commit 4750bbc3bc
1 changed files with 2 additions and 2 deletions

View File

@ -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];