mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Properly resolve tracked changes when pasting multiple tabular cells
Fixes #11791
This commit is contained in:
parent
0d2773ff5e
commit
1e409a1a75
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user