mirror of
https://github.com/godotengine/godot
synced 2024-09-05 14:30:30 +00:00
Fix trim overrun width not being reset.
This commit is contained in:
parent
27417c065d
commit
11a49c2f29
|
@ -3573,6 +3573,7 @@ void TextServerAdvanced::shaped_text_overrun_trim_to_width(RID p_shaped_line, re
|
|||
shaped_text_shape(p_shaped_line);
|
||||
}
|
||||
|
||||
sd->text_trimmed = false;
|
||||
sd->overrun_trim_data.ellipsis_glyph_buf.clear();
|
||||
|
||||
bool add_ellipsis = (p_trim_flags & OVERRUN_ADD_ELLIPSIS) == OVERRUN_ADD_ELLIPSIS;
|
||||
|
|
|
@ -2683,6 +2683,7 @@ void TextServerFallback::shaped_text_overrun_trim_to_width(RID p_shaped_line, re
|
|||
shaped_text_shape(p_shaped_line);
|
||||
}
|
||||
|
||||
sd->text_trimmed = false;
|
||||
sd->overrun_trim_data.ellipsis_glyph_buf.clear();
|
||||
|
||||
bool add_ellipsis = (p_trim_flags & OVERRUN_ADD_ELLIPSIS) == OVERRUN_ADD_ELLIPSIS;
|
||||
|
|
Loading…
Reference in a new issue