Merge pull request #60955 from pfertyk/issue-60668-fix-get-breakpointed-lines-crash
Fix `get_breakpointed_lines` crashing Godot
This commit is contained in:
commit
c0d189fbb8
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
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);
|
||||
}
|
||||
emit_signal(SNAME("gutter_removed"));
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue