]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
Don try to be smart and always protect the preamble with \makeatletter
[lyx.git] / src / CutAndPaste.cpp
index 16db7a5976bdfdeed2d692273dd85910dd4d0cd5..ecb4cbcafbaddca26dd6d71779a35775eea70975 100644 (file)
@@ -742,7 +742,11 @@ void copySelectionToStack(Cursor const & cur, CutStack & cutstack)
                copySelectionHelper(*cur.buffer(), pars, par, cur.selEnd().pit(),
                        pos, cur.selEnd().pos(), 
                        cur.buffer()->params().documentClassPtr(), cutstack);
-               dirtyTabularStack(false);
+
+               // Reset the dirty_tabular_stack_ flag only when something
+               // is copied to the clipboard (not to the selectionBuffer).
+               if (&cutstack == &theCuts)
+                       dirtyTabularStack(false);
        }
 
        if (cur.inMathed()) {