Fixing #7410 (weird stale selection leads to assertion after replace all).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40528 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2011-12-20 00:02:51 +00:00
parent 0da8a39a3b
commit c3f3ead287

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