From 37ef6036d0a176df5c5de241fde2aeaa7ca4c41a Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 20 Oct 2021 23:46:57 +0800 Subject: [PATCH] Add missing cache clear in RichTextLabel::_process_line --- scene/gui/rich_text_label.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index ccb24928c4d..ad7daf4af8f 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -174,6 +174,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int & l.height_caches.clear(); l.ascent_caches.clear(); l.descent_caches.clear(); + l.space_caches.clear(); l.char_count = 0; l.minimum_width = 0; l.maximum_width = 0;