mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Always mark pasted stuff as changed with ct on
independent of "Keep change tracking markup on copy and paste" pref. Probably addresses #11973
This commit is contained in:
parent
c978137f99
commit
22193601bf
@ -277,7 +277,13 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
|
||||
tmpbuf->eraseChar(i--, false);
|
||||
}
|
||||
|
||||
if (lyxrc.ct_markup_copied)
|
||||
if (lyxrc.ct_markup_copied) {
|
||||
// Only change to inserted if ct is active,
|
||||
// otherwise leave markup as is
|
||||
if (buffer.params().track_changes)
|
||||
tmpbuf->setChange(Change(Change::INSERTED));
|
||||
} else
|
||||
// Resolve all markup to inserted or unchanged
|
||||
tmpbuf->setChange(Change(buffer.params().track_changes ?
|
||||
Change::INSERTED : Change::UNCHANGED));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user