Fix assertion on paste with empty pars

This commit is contained in:
Juergen Spitzmueller 2023-10-04 13:40:38 +02:00
parent fc0ce87ce4
commit 3f0bb8aa43

View File

@ -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