From: Tommaso Cucinotta Date: Tue, 20 Dec 2011 00:02:51 +0000 (+0000) Subject: Fixing #7410 (weird stale selection leads to assertion after replace all). X-Git-Tag: 2.1.0beta1~2176 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c3f3ead287ae5eb4e1a6f39467d8187bf2e03975;p=features.git 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 --- diff --git a/src/frontends/qt4/FindAndReplace.cpp b/src/frontends/qt4/FindAndReplace.cpp index 9f7f567d21..d83132ebe0 100644 --- a/src/frontends/qt4/FindAndReplace.cpp +++ b/src/frontends/qt4/FindAndReplace.cpp @@ -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