]> git.lyx.org Git - lyx.git/commitdiff
Revert "Now math previews are correctly updated when replacing math contents inside"
authorScott Kostyshak <skostysh@lyx.org>
Fri, 13 Nov 2015 05:54:15 +0000 (00:54 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 13 Nov 2015 05:54:15 +0000 (00:54 -0500)
Updating all previews (even if only one has changed) is more costly
than I thought. Thanks to Guillaume for tracking down this
performance issue.

This reversion is related to the reversions at 358745d0 and
a7a14395. See also #7242 and #9855.

This reverts commit 29948eec26ffc90bdfe0b853aa79d30cfa36c08d.

src/lyxfind.cpp

index f46bed9ac5fc41cf17be3c4b0b2b3c9817d4d0c1..d7038dedcb1e66d4bc96bb8e328e81dd26f295c1 100644 (file)
@@ -1425,7 +1425,6 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
        LYXERR(Debug::FIND, "After pos adj cur=" << cur << " with depth: " << cur.depth() << " and len: " << sel_len);
        bv->putSelectionAt(DocIterator(cur), sel_len, !opt.forward);
        bv->processUpdateFlags(Update::Force);
-       bv->buffer().updatePreviews();
 }