]> git.lyx.org Git - features.git/commitdiff
Now math previews are correctly updated when replacing math contents inside
authorTommaso Cucinotta <tommaso@lyx.org>
Tue, 12 Apr 2011 20:16:57 +0000 (20:16 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Tue, 12 Apr 2011 20:16:57 +0000 (20:16 +0000)
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

index 4e105276128150ceaa0f3c84cfa819dd9384025d..02dc9ff07b48058db08eee105742ca76506e2956 100644 (file)
@@ -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();
 }