Improve multi-line texts with broken words.

This commit is contained in:
John Preston 2020-03-31 12:33:35 +04:00
parent 86cb882aab
commit 14c5da49f9

View file

@ -1245,7 +1245,7 @@ public:
_wLeft -= _elideRemoveFromEnd;
}
longWordLine = true;
longWordLine = !wordEndsHere;
f = j + 1;
f_wLeft = _wLeft;
f_lineHeight = _lineHeight;
@ -3031,7 +3031,7 @@ void String::enumerateLines(
last_rPadding = j->f_rpadding();
widthLeft = width - (j_width - last_rBearing);
longWordLine = true;
longWordLine = !wordEndsHere;
f = j + 1;
f_wLeft = widthLeft;
f_lineHeight = lineHeight;