From: Scott Kostyshak Date: Sun, 7 Jun 2015 15:57:08 +0000 (-0400) Subject: Revert "Update previews after pasting (#6211)" X-Git-Tag: 2.2.0alpha1~556 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=580947bfe01ef8529256243166b372e9daadf948;p=features.git Revert "Update previews after pasting (#6211)" As JMarc notes on the ML, the referenced commit modifies a full buffer just in the middle of a dispatch action. Further, this commit lead to an assertion [1], although it is not clear to me whether the root cause of the assertion is the commit that is being reverted here, or one of the issues we have with previews and macros. This reverts commit 73460423ad684b8728fe7bdf51f27dbc5cae5ea9. [1] http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg187921.html --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 6dbd4d5a15..3a93ed23d5 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1356,7 +1356,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) bv->buffer().errors("Paste"); cur.clearSelection(); // bug 393 cur.finishUndo(); - bv->buffer().updatePreviews(); break; }