Commit 4750bbc3 authored by hybrid's avatar hybrid

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
parent a5128943
...@@ -1009,11 +1009,11 @@ void CGUITable::breakText(const core::stringw& text, core::stringw& brokenText, ...@@ -1009,11 +1009,11 @@ void CGUITable::breakText(const core::stringw& text, core::stringw& brokenText,
if (c[0] == L'\n') if (c[0] == L'\n')
break; break;
pos += font->getDimension( c ).Width; pos += font->getDimension(c).Width;
if ( pos > maxLength ) if ( pos > maxLength )
break; break;
if ( font->getDimension( (line + c[0]).c_str() ).Width > maxLengthDots ) if ( font->getDimension( (line + c).c_str() ).Width > maxLengthDots )
lineDots = line; lineDots = line;
line += c[0]; line += c[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment