diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-04-12 11:39:05 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-04-12 11:39:05 +0300 |
commit | 282e4231c26c172b186a5bf22a8ba7f0337ba3d6 (patch) | |
tree | f6055da0ce2c56cdd53f5ce10e7ed13c9fc581f8 /modules/text_server_adv/text_server_adv.h | |
parent | 1433c98e9f75e4ccbbb873bad0ca006b2f7937fc (diff) | |
download | redot-engine-282e4231c26c172b186a5bf22a8ba7f0337ba3d6.tar.gz |
Improve line BiDi handling, prevent crash on recursive log updates.
Diffstat (limited to 'modules/text_server_adv/text_server_adv.h')
-rw-r--r-- | modules/text_server_adv/text_server_adv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/text_server_adv/text_server_adv.h b/modules/text_server_adv/text_server_adv.h index af3a0c7876..4b8c3f7cd3 100644 --- a/modules/text_server_adv/text_server_adv.h +++ b/modules/text_server_adv/text_server_adv.h @@ -476,6 +476,7 @@ class TextServerAdvanced : public TextServerExtension { /* Shaped data */ TextServer::Direction para_direction = DIRECTION_LTR; // Detected text direction. + int base_para_direction = UBIDI_DEFAULT_LTR; bool valid = false; // String is shaped. bool line_breaks_valid = false; // Line and word break flags are populated (and virtual zero width spaces inserted). bool justification_ops_valid = false; // Virtual elongation glyphs are added to the string. |