This commit is contained in:
Juergen Spitzmueller 2024-04-07 06:24:37 +02:00
parent 7c8f3a5d28
commit 6a2a9086ad

View File

@ -475,6 +475,8 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
} }
insertion.swap(in.paragraphs()); insertion.swap(in.paragraphs());
// We need to do this here, after the inset handling above,
// as acceptChanges() and rejectChanges() might access inset buffers.
tmpbuf = insertion.begin(); tmpbuf = insertion.begin();
for (; tmpbuf != insertion.end(); ++tmpbuf) { for (; tmpbuf != insertion.end(); ++tmpbuf) {
if (lyxrc.ct_markup_copied) { if (lyxrc.ct_markup_copied) {