浏览代码

Merge pull request #54031 from timothyqiu/rich-text-label-space-cache

Rémi Verschelde 3 年之前
父节点
当前提交
d65f06652e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/rich_text_label.cpp

+ 1 - 0
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;