mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed a small text abbreviation issue.
This commit is contained in:
parent
e2fb03dbf3
commit
047d080346
|
@ -529,7 +529,7 @@ std::string Font::wrapText(std::string text, float maxLength, float maxHeight, f
|
|||
// If the word is too long to fit within maxLength then abbreviate it.
|
||||
if (sizeText(word).x > maxLength) {
|
||||
|
||||
if (line != "") {
|
||||
if (line != "" && line.back() != '\n') {
|
||||
if (restrictHeight) {
|
||||
if (accumHeight + lineHeight > maxHeight)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue