mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Fix assertion on paste with empty pars
This commit is contained in:
parent
fc0ce87ce4
commit
3f0bb8aa43
@ -297,7 +297,7 @@ 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) {
|
||||
if (buffer.params().track_changes && tmpbuf->size() > 0) {
|
||||
if (!isFullyDeleted(insertion))
|
||||
tmpbuf->acceptChanges(0, tmpbuf->size());
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user