Properly resolve tracked changes when pasting multiple tabular cells

Fixes #11791
This commit is contained in:
Juergen Spitzmueller 2020-03-21 15:54:37 +01:00
parent 0d2773ff5e
commit 1e409a1a75

View File

@ -7131,9 +7131,12 @@ bool InsetTabular::pasteClipboard(Cursor & cur)
// FIXME?: why do we need to do this explicitly? (EL)
tabular.cellInset(r2, c2)->setBuffer(tabular.buffer());
// FIXME: change tracking (MG)
inset->setChange(Change(buffer().params().track_changes ?
if (!lyxrc.ct_markup_copied) {
// do not paste deleted text
inset->acceptChanges();
inset->setChange(Change(buffer().params().track_changes ?
Change::INSERTED : Change::UNCHANGED));
}
cur.pos() = 0;
cur.pit() = 0;
}