Fixed #867 (macro editor freeze after search next)

This commit is contained in:
Matthias Koefferlein 2021-07-19 22:47:33 +02:00
parent d5250cfc00
commit 52f7a04838
1 changed files with 4 additions and 0 deletions

View File

@ -1104,6 +1104,10 @@ MacroEditorPage::find_next ()
}
QTextCursor c = mp_text->textCursor ();
if (c.isNull ()) {
c = QTextCursor (mp_text->document ());
mp_text->setTextCursor (c);
}
bool first = true;
for (QTextBlock b = c.block (); true; ) {