1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Fixes crash after remove_line in RichTextLabel

`ItemFrame` always have a line.
This commit is contained in:
Haoyu Qiu
2019-12-12 16:35:50 +08:00
parent 37d164e24e
commit 776ae18d64

View File

@@ -1701,6 +1701,9 @@ bool RichTextLabel::remove_line(const int p_line) {
if (!was_newline) {
current_frame->lines.remove(p_line);
if (current_frame->lines.size() == 0) {
current_frame->lines.resize(1);
}
}
if (p_line == 0 && current->subitems.size() > 0)