Revert "Now math previews are correctly updated when replacing math contents inside"

This commit reverts 73ad885a and 29948eec.

Updating all previews is expensive. See #7242 for details.
This commit is contained in:
Scott Kostyshak 2015-11-13 20:06:45 -05:00
parent 07aa68d612
commit 400db01c2a

View File

@ -1426,7 +1426,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();
}