Commit 56057e04 authored by hybrid's avatar hybrid

Fix regression, where very long words introduced an empty line

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3687 dfc29bdd-3216-0410-991c-e03cc46cb475
parent da9ec64a
...@@ -355,7 +355,8 @@ void CGUIStaticText::breakText() ...@@ -355,7 +355,8 @@ void CGUIStaticText::breakText()
{ {
// No soft hyphen found, so there's nothing more we can do // No soft hyphen found, so there's nothing more we can do
// break to next line // break to next line
BrokenText.push_back(line); if (length)
BrokenText.push_back(line);
length = wordlgth; length = wordlgth;
line = word; line = word;
} }
......
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