From 51dd4792d79bfa9c9ec866cc63c5702098b12c38 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Wed, 29 Jul 2020 21:42:38 +0100 Subject: [PATCH] Fix TextEdit line width cache not being updated --- scene/gui/text_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 39ac10a46e4..b974dc28970 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4889,6 +4889,7 @@ void TextEdit::_update_caches() { cache.folded_eol_icon = get_theme_icon("GuiEllipsis", "EditorIcons"); cache.executing_icon = get_theme_icon("MainPlay", "EditorIcons"); text.set_font(cache.font); + text.clear_width_cache(); if (syntax_highlighter.is_valid()) { syntax_highlighter->set_text_edit(this);