From b0b88df0168f7dcd39bfb22bda7f4ea7a22a5eff Mon Sep 17 00:00:00 2001 From: Guilherme Felipe Date: Wed, 19 Sep 2018 14:05:24 -0300 Subject: Fix Label::get_minimum_size not updating cache size for autowrap --- scene/gui/label.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'scene/gui') diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index ce8de38b74..91dab27930 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -295,14 +295,13 @@ Size2 Label::get_minimum_size() const { Size2 min_style = get_stylebox("normal")->get_minimum_size(); + // don't want to mutable everything + if (word_cache_dirty) + const_cast