]> git.lyx.org Git - features.git/commitdiff
Revert "Update previews after pasting (#6211)"
authorScott Kostyshak <skostysh@lyx.org>
Sun, 7 Jun 2015 15:57:08 +0000 (11:57 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 7 Jun 2015 16:14:00 +0000 (12:14 -0400)
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

src/Text3.cpp

index 6dbd4d5a15dece5e1750289bf1f9693bc4f16504..3a93ed23d59cb74ef745d3a6bc5d6fa2078706f0 100644 (file)
@@ -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;
        }