Fix word wrapping issue (words moved onto new lines were not being added to the line width)

This commit is contained in:
Simon Robertshaw 2012-09-30 23:57:23 +01:00
parent 288a4f710a
commit 89e9623725

View File

@ -107,7 +107,8 @@ void Label::updateMultiline()
*wordStart = '\n'; *wordStart = '\n';
else if(!wordStart) else if(!wordStart)
rawText[charIndex-1] = '\n'; rawText[charIndex-1] = '\n';
lineWidth = wordWidth = 0; lineWidth = wordWidth;
wordWidth = 0;
lines++; lines++;
} }
break; break;