mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
7ff6379445
commit
0cb87c6bc4
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user