X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.cpp;h=901b7d7f4a6abafe0d4bcd587e91c64884f10506;hb=f83a38b3defc997f808539d0dfd618f5ba71e13c;hp=87e0803b78c1572c0f05f3b6417324788e7855b3;hpb=7d888cc5e016c8f0621348630969539fd4d4ddad;p=lyx.git diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 87e0803b78..901b7d7f4a 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -122,6 +122,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist, if (insertion[i].isNewline(j)) { // do not track deletion of newline insertion[i].eraseChar(j, false); + insertion[i].setInsetOwner(target_inset); breakParagraphConservative( buffer.params(), insertion, i, j);