parent
9c746b3213
commit
3d5dd91f22
1 changed files with 2 additions and 6 deletions
|
@ -4711,9 +4711,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();
|
||||
}
|
||||
|
@ -4723,9 +4721,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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue