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
This commit is contained in:
Vincent van Ravesteijn 2009-05-17 21:02:07 +00:00
parent 7ff6379445
commit 0cb87c6bc4

View File

@ -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()) {