X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.cpp;h=f79d4ace7c7dc8533df839c169e3e0ab8cc35c8b;hb=e4b80698be91708ce1b9fd86d6032245ef4f3dc7;hp=4a93966b1dab340b742a70067741a877c903dd10;hpb=009efa195bf2837a007c0b070261b34a715b9b39;p=lyx.git diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 4a93966b1d..f79d4ace7c 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -1263,6 +1263,7 @@ bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs, string lyx = theClipboard().getAsLyX(); if (!lyx.empty()) { Buffer buffer(string(), false); + buffer.setInternal(true); buffer.setUnnamed(true); if (buffer.readString(lyx)) { cur.recordUndo(); @@ -1296,6 +1297,7 @@ bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs, available = !text.empty(); if (available) { Buffer buffer(string(), false); + buffer.setInternal(true); buffer.setUnnamed(true); available = buffer.importString(names[i], text, errorList); if (available)