Backport Tommaso's fix for #7410: Weird stale selection leads

to assertion after replace all.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40651 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2012-01-22 14:23:43 +00:00
parent 4158734a2e
commit 88fe65bf0c
2 changed files with 4 additions and 1 deletions

View File

@ -328,7 +328,8 @@ bool FindAndReplaceWidget::findAndReplaceScope(FindAndReplaceOptions & opt, bool
continue;
view_.setBusy(false);
return true;
}
} else if (replace_all)
bv->clearSelection();
// No match found in current buffer (however old selection might have been replaced)
// select next buffer in scope, if any

View File

@ -215,6 +215,8 @@ What's new
* ADVANCED FIND AND REPLACE
- Fix crash with Replace All (bug 7410).
* BUILD/INSTALLATION