diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-08 08:18:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 08:18:59 +0100 |
commit | 1de54bb388d61b79ac7180dc4ca7180f863e02c8 (patch) | |
tree | 75cfd15084e1956ed980ee249aaf4cc3bb09c682 /scene/gui | |
parent | 033fb72c031ff9040899a3cec7fef797a0fccd85 (diff) | |
parent | 695980a0f21adbe66eb12e1015fdc8c51fb62bf9 (diff) |
Merge pull request #34874 from wingedadventurer/bugfix-label-visible-characters
Make Label node consider spaces for visible_characters property
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/label.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index df88b34f9d..6b12947651 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -224,6 +224,7 @@ void Label::_notification(int p_what) { return; } if (from->space_count) { + chars_total += from->space_count; /* spacing */ x_ofs += space_w * from->space_count; if (can_fill && align == ALIGN_FILL && spaces) { |