diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-08 23:04:02 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-08 23:07:19 +0800 |
commit | 2a921cc9f88bec115910a39cb4e31c6001fa192e (patch) | |
tree | 28352784ac57cb25ebf162b5a2be350f0d9ad9b7 /scene/gui/label.cpp | |
parent | bbac8198f89c0cbf0da4293201e54aa847947370 (diff) | |
download | redot-engine-2a921cc9f88bec115910a39cb4e31c6001fa192e.tar.gz |
Fix Label text length mismatch after localization
Diffstat (limited to 'scene/gui/label.cpp')
-rw-r--r-- | scene/gui/label.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index bf7c59d1cd..63401ca195 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -117,7 +117,7 @@ void Label::_shape() { for (int i = 0; i < TextServer::SPACING_MAX; i++) { TS->shaped_text_set_spacing(text_rid, TextServer::SpacingType(i), font->get_spacing(TextServer::SpacingType(i))); } - TS->shaped_text_set_bidi_override(text_rid, structured_text_parser(st_parser, st_args, text)); + TS->shaped_text_set_bidi_override(text_rid, structured_text_parser(st_parser, st_args, txt)); dirty = false; font_dirty = false; lines_dirty = true; |