diff options
author | wingedadventurer <wingedadventurer@gmail.com> | 2020-01-06 23:21:30 +0100 |
---|---|---|
committer | wingedadventurer <wingedadventurer@gmail.com> | 2020-01-06 23:29:00 +0100 |
commit | 695980a0f21adbe66eb12e1015fdc8c51fb62bf9 (patch) | |
tree | b79d470b02e8d96a5e677ca9acf03dc0dfd69f65 /scene/gui | |
parent | ce75a2f33d4000e3ecba0fe8281ca335f5528c86 (diff) |
make Label consider spaces for visible_characters
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 fa795361a8..caa6e93ede 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -225,6 +225,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) { |