]> git.lyx.org Git - lyx.git/commitdiff
Comment on 9198ed596580
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 7 Apr 2024 04:24:37 +0000 (06:24 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 7 Apr 2024 04:24:37 +0000 (06:24 +0200)
src/CutAndPaste.cpp

index 226b48e250f4b1a593957e66614945463303becd..276285dfbc2dbcf3db0d10f59e991ffe23a2eb4e 100644 (file)
@@ -475,6 +475,8 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
        }
        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();
        for (; tmpbuf != insertion.end(); ++tmpbuf) {
                if (lyxrc.ct_markup_copied) {