From 9a32d7b07cac08c23c909fd6096171c9dee34363 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 12 Apr 2021 09:19:27 +0200 Subject: [PATCH] Mark c&p buffers internal. Cures assertion (#12246) --- src/CutAndPaste.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index b436167308..8941efe71e 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -1225,6 +1225,7 @@ bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs, // For some strange reason gcc 3.2 and 3.3 do not accept // Buffer buffer(string(), false); Buffer buffer("", false); + buffer.setInternal(true); buffer.setUnnamed(true); if (buffer.readString(lyx)) { cur.recordUndo(); @@ -1258,6 +1259,7 @@ bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs, // For some strange reason gcc 3.2 and 3.3 do not accept // Buffer buffer(string(), false); Buffer buffer("", false); + buffer.setInternal(true); buffer.setUnnamed(true); available = buffer.importString(names[i], text, errorList); if (available)