X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.cpp;h=17dbdc626e1aa84f45e07e8f0f932eafecb33921;hb=f58d7dfe7b86ebaca38301747643c4fb460365fe;hp=7e09ac9ff95bd7659cc9f783ac33add56f0181ee;hpb=004fdf6aebd7669c4b1df33236fe2a8f515584c0;p=lyx.git diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 7e09ac9ff9..17dbdc626e 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -652,7 +652,7 @@ void copySelectionHelper(Buffer const & buf, Text const & text, // are not linked to something else. it = copy_pars.begin(); for (; it != it_end; ++it) { - it->setBuffer(*static_cast(0)); + it->resetBuffer(); it->setInsetOwner(0); }