mirror of https://github.com/KLayout/klayout.git
Merge pull request #872 from KLayout/issue-867
Fixed #867 (macro editor freeze after search next)
This commit is contained in:
commit
2570c1464f
|
|
@ -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; ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue