# HG changeset patch # User Rubidium # Date 2023-01-15 07:51:00 # Node ID 1f762077f5d42979decf13f74b5f125bb373e976 # Parent 89d96ce75ed8d3e0ba5655012d50c57441802033 Fix #10057: FallbackParagraphLayout fails to properly wrap ... during the first word after a new run has been started. diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -552,8 +552,6 @@ std::unique_ptrbuffer_begin + iter->first; begin = this->buffer; - - last_space = nullptr; } if (IsWhitespace(c)) last_space = this->buffer; @@ -591,7 +589,7 @@ std::unique_ptrbuffer++; } - if (l->size() == 0 || last_char - begin != 0) { + if (l->size() == 0 || last_char - begin > 0) { int w = l->GetWidth(); l->emplace_back(iter->second, begin, last_char - begin, w); }