mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
parent
3f0bb8aa43
commit
90307cf212
@ -297,11 +297,13 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
|
||||
// Only remove deleted text and change
|
||||
// the rest to inserted if ct is active,
|
||||
// otherwise leave markup as is
|
||||
if (buffer.params().track_changes && tmpbuf->size() > 0) {
|
||||
if (!isFullyDeleted(insertion))
|
||||
tmpbuf->acceptChanges(0, tmpbuf->size());
|
||||
else
|
||||
tmpbuf->rejectChanges(0, tmpbuf->size());
|
||||
if (buffer.params().track_changes) {
|
||||
if (tmpbuf->size() > 0) {
|
||||
if (!isFullyDeleted(insertion))
|
||||
tmpbuf->acceptChanges(0, tmpbuf->size());
|
||||
else
|
||||
tmpbuf->rejectChanges(0, tmpbuf->size());
|
||||
}
|
||||
tmpbuf->setChange(Change(Change::INSERTED));
|
||||
}
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user