diff --git a/third_party/txt/src/txt/paragraph.cc b/third_party/txt/src/txt/paragraph.cc index a2fd816a84dd5a28dda4707d23b13cbd3726a51e..1ece631fd57c1debdc35df9a2713cfcb3459c411 100644 --- a/third_party/txt/src/txt/paragraph.cc +++ b/third_party/txt/src/txt/paragraph.cc @@ -303,7 +303,7 @@ bool Paragraph::ComputeLineBreaks() { (hard_break && line_end < text_.size()) ? line_end + 1 : line_end; size_t line_end_excluding_whitespace = line_end; while ( - line_end_excluding_whitespace > 0 && + line_end_excluding_whitespace > line_start && minikin::isLineEndSpace(text_[line_end_excluding_whitespace - 1])) { line_end_excluding_whitespace--; }