From a57d207a57ac199b9a1c061081b97607131b86c8 Mon Sep 17 00:00:00 2001 From: Semyon Yentsov Date: Mon, 1 Nov 2021 01:37:18 +0300 Subject: [PATCH] Fix bug #1707 --- src/modules/graphics/Font.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/modules/graphics/Font.cpp b/src/modules/graphics/Font.cpp index 967fe78f2..5d3304904 100644 --- a/src/modules/graphics/Font.cpp +++ b/src/modules/graphics/Font.cpp @@ -896,14 +896,11 @@ void Font::getWrap(const ColoredCodepoints &codepoints, float wraplimit, std::ve } // Push the last line. - if (!wline.cps.empty()) - { - lines.push_back(wline); + lines.push_back(wline); - // Ignore the width of any trailing spaces, for individual lines. - if (linewidths) - linewidths->push_back(width - widthoftrailingspace); - } + // Ignore the width of any trailing spaces, for individual lines. + if (linewidths) + linewidths->push_back(width - widthoftrailingspace); } void Font::getWrap(const std::vector &text, float wraplimit, std::vector &lines, std::vector *linewidths)