]> git.lyx.org Git - lyx.git/commitdiff
Fixing #7410 (weird stale selection leads to assertion after replace all).
authorTommaso Cucinotta <tommaso@lyx.org>
Tue, 20 Dec 2011 00:02:51 +0000 (00:02 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Tue, 20 Dec 2011 00:02:51 +0000 (00:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40528 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/FindAndReplace.cpp

index 9f7f567d21abf9f9136cc010cf59cce43e9b9bf4..d83132ebe068644134cb764141a2e952d54eaabb 100644 (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