From: Tommaso Cucinotta Date: Tue, 12 Apr 2011 20:16:57 +0000 (+0000) Subject: Now math previews are correctly updated when replacing math contents inside X-Git-Tag: 2.0.0~151 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=29948eec26ffc90bdfe0b853aa79d30cfa36c08d;p=features.git 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 --- 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(); }