mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
[RTL] Fix CharFX character offset calculation.
This commit is contained in:
parent
1ba920fada
commit
7a59efac32
@ -3121,6 +3121,8 @@ void RichTextLabel::_add_item(Item *p_item, bool p_enter, bool p_ensure_newline)
|
||||
current_char_ofs += t->text.length();
|
||||
} else if (p_item->type == ITEM_IMAGE) {
|
||||
current_char_ofs++;
|
||||
} else if (p_item->type == ITEM_NEWLINE) {
|
||||
current_char_ofs++;
|
||||
}
|
||||
|
||||
if (p_enter) {
|
||||
|
Loading…
Reference in New Issue
Block a user