From 2385fb30b5e13d3806e3aa6db489ef801e77b89b Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 2 Apr 2024 22:50:38 +0400 Subject: [PATCH] Fix complex-shaped Ui::Text::String geometry. --- ui/text/text.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/text/text.cpp b/ui/text/text.cpp index 367134c0..1e887a48 100644 --- a/ui/text/text.cpp +++ b/ui/text/text.cpp @@ -984,6 +984,8 @@ void String::enumerateLines( return withElided(true); } lineHeight = 0; + last_rBearing = 0;// b->f_rbearing(); (0 for newline) + last_rPadding = 0;// b->f_rpadding(); (0 for newline) initNextParagraph(i + 1, index); longWordLine = true;