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-e03cc46cb475master
parent
a512894396
commit
4750bbc3bc
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue