From 0cb87c6bc4f842d18a56d93bb3fc7199a85eef70 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 17 May 2009 21:02:07 +0000 Subject: [PATCH] When the clipboard contains a tabular selection, dirty_tabular_stack_ is true. However, it is set to false when the user clears a selection (without copying). After this (mostly accidental) action, pasting the tabular contents goes wrong. So, we only clear the dirty_tabular_stack_ flag when a 'real' copy to clipboard has been made. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29717 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CutAndPaste.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 16db7a5976..5dd1a55285 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -742,7 +742,8 @@ 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); + if (&cutstack == &theCuts) + dirtyTabularStack(false); } if (cur.inMathed()) { -- 2.39.2