summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-29 22:56:21 +0200
committerGitHub <noreply@github.com>2020-07-29 22:56:21 +0200
commitb27bdcb51e91492b5afaa5dfc81615517cadb3b5 (patch)
treee313d75f324662e2fd7a0375233b67c94c75bae5
parent00e1175b7dcd01be9b13c8fe852af68a916f45e6 (diff)
parent51dd4792d79bfa9c9ec866cc63c5702098b12c38 (diff)
Merge pull request #40851 from Paulb23/fix_text_edit_width_cache
Fix TextEdit line width cache not being updated
-rw-r--r--scene/gui/text_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 39ac10a46e..b974dc2897 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);