]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.C
hopefully fix tex2lyx linking.
[lyx.git] / src / CutAndPaste.C
index 654009914b561bbf6a01b07763f47207f5f50741..88fbbb6141900187a35658d9131614bb2bbb425f 100644 (file)
@@ -621,8 +621,6 @@ void pasteParagraphList(LCursor & cur, ParagraphList const & parlist,
                LyXText * text = cur.text();
                BOOST_ASSERT(text);
 
-               recordUndo(cur);
-
                pit_type endpit;
                PitPosPair ppp;
 
@@ -645,6 +643,7 @@ void pasteSelection(LCursor & cur, ErrorList & errorList, size_t sel_index)
        if (!checkPastePossible(sel_index))
                return;
 
+       recordUndo(cur);
        pasteParagraphList(cur, theCuts[sel_index].first,
                           theCuts[sel_index].second, errorList);
        cur.setSelection();