From 29948eec26ffc90bdfe0b853aa79d30cfa36c08d Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Tue, 12 Apr 2011 20:16:57 +0000 Subject: [PATCH] Now math previews are correctly updated when replacing math contents inside through Advanced Find and Replace. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38355 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 4e10527612..02dc9ff07b 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -1343,6 +1343,7 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M LYXERR(Debug::FIND, "Putting selection at cur=" << cur << " with len: " << sel_len); bv->putSelectionAt(DocIterator(cur), sel_len, !opt.forward); bv->processUpdateFlags(Update::Force); + bv->buffer().updatePreviews(); } -- 2.39.2