Fix word wrapping issue (words moved onto new lines were not being added to the line width)
This commit is contained in:
parent
288a4f710a
commit
89e9623725
@ -107,7 +107,8 @@ void Label::updateMultiline()
|
||||
*wordStart = '\n';
|
||||
else if(!wordStart)
|
||||
rawText[charIndex-1] = '\n';
|
||||
lineWidth = wordWidth = 0;
|
||||
lineWidth = wordWidth;
|
||||
wordWidth = 0;
|
||||
lines++;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user