From 00c346b325d93db35ff06b8335d11a9a1d9ee771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Fertyk?= Date: Thu, 31 Mar 2022 22:28:40 +0200 Subject: [PATCH] Fix get_visible_line_count in RichTextLabel with newlines Fixed #59359. (cherry picked from commit 32cdf9fad2e0cffdc7fb9e4bcce2dedc1ead9f9d) --- scene/gui/rich_text_label.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 34e9d906a8e..874047acd92 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -714,7 +714,6 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int & if (p_mode != PROCESS_CACHE) { lh = line < l.height_caches.size() ? l.height_caches[line] : 1; - line_is_blank = true; } } break;