From 88fe65bf0c7e4d72bad68e29cbbba23ee8bd7a7d Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 22 Jan 2012 14:23:43 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/FindAndReplace.cpp | 3 ++- status.20x | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 diff --git a/status.20x b/status.20x index c01ece77f5..4a75bfd2fc 100644 --- a/status.20x +++ b/status.20x @@ -215,6 +215,8 @@ What's new * ADVANCED FIND AND REPLACE +- Fix crash with Replace All (bug 7410). + * BUILD/INSTALLATION