mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
[TextServer] Fix incorrect line breaks count for embedded objects (e.g. RTL tables).
This commit is contained in:
parent
e22a1d8031
commit
397fa2fa7a
@ -4622,7 +4622,8 @@ bool TextServerAdvanced::_shaped_text_update_breaks(const RID &p_shaped) {
|
||||
sd->breaks[pos] = false;
|
||||
|
||||
int pos_p = pos - 1 - sd->start;
|
||||
if (pos - sd->start != sd->end && !is_whitespace(sd->text[pos_p])) {
|
||||
char32_t c = sd->text[pos_p];
|
||||
if (pos - sd->start != sd->end && !is_whitespace(c) && (c != 0xfffc)) {
|
||||
sd->break_inserts++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user