Skip to content

Commit 5df264e

Browse files
Merge pull request #2142 from KLayout/bugfix/issue-2133
Fixed issue #2133 (crash in editor search&replace)
2 parents 8dfefeb + 3b86448 commit 5df264e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lay/lay/layMacroEditorPage.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,9 +1401,9 @@ MacroEditorPage::replace_in_selection (const QString &replace, bool first)
14011401
// restore selection which might have changed due to insert
14021402
c.setPosition (anchor_at_end ? be.position () + pe : bs.position () + ps);
14031403
c.setPosition (!anchor_at_end ? be.position () + pe : bs.position () + ps, QTextCursor::KeepAnchor);
1404+
mp_text->setTextCursor (c);
14041405
}
14051406

1406-
mp_text->setTextCursor (c);
14071407
c.endEditBlock ();
14081408
}
14091409

0 commit comments

Comments
 (0)