Merge pull request #872 from KLayout/issue-867

Fixed #867 (macro editor freeze after search next)
This commit is contained in:
Matthias Köfferlein 2021-07-21 23:36:20 +02:00 committed by GitHub
commit 2570c1464f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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; ) {