Skip to content

Commit 3b86448

Browse files
author
Matthias Koefferlein
committed
Fixed issue #2133 (crash in editor search&replace)
1 parent 70ba27c commit 3b86448

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)