From a83003b2285d88d9410b2bb3c0e9e9190d457927 Mon Sep 17 00:00:00 2001 From: iota97 Date: Fri, 24 Sep 2021 23:20:38 +0200 Subject: [PATCH] Fix text wrap edge case --- Common/Data/Text/WrapText.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Data/Text/WrapText.cpp b/Common/Data/Text/WrapText.cpp index c88628acf5..abae02352d 100644 --- a/Common/Data/Text/WrapText.cpp +++ b/Common/Data/Text/WrapText.cpp @@ -119,7 +119,7 @@ void WordWrapper::AppendWord(int endIndex, bool addNewline) { } // This will include the newline. - if (x_ < maxW_) { + if (x_ <= maxW_) { out_.append(str_ + lastWordStartIndex, str_ + endIndex); } else { scanForNewline_ = true;