make Label consider spaces for visible_characters

This commit is contained in:
wingedadventurer 2020-01-06 23:21:30 +01:00
parent ce75a2f33d
commit 695980a0f2
1 changed files with 1 additions and 0 deletions

View File

@ -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) {