Merge pull request #60955 from pfertyk/issue-60668-fix-get-breakpointed-lines-crash

Fix `get_breakpointed_lines` crashing Godot
This commit is contained in:
Rémi Verschelde 2022-05-18 22:55:30 +02:00 committed by GitHub
commit c0d189fbb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4756,9 +4756,7 @@ void TextEdit::add_gutter(int p_at) {
gutters.insert(p_at, GutterInfo());
}
for (int i = 0; i < text.size() + 1; i++) {
text.add_gutter(p_at);
}
text.add_gutter(p_at);
emit_signal(SNAME("gutter_added"));
update();
}
@ -4768,9 +4766,7 @@ void TextEdit::remove_gutter(int p_gutter) {
gutters.remove_at(p_gutter);
for (int i = 0; i < text.size() + 1; i++) {
text.remove_gutter(p_gutter);
}
text.remove_gutter(p_gutter);
emit_signal(SNAME("gutter_removed"));
update();
}