Mark c&p buffers internal. Cures assertion (#12246)

This commit is contained in:
Juergen Spitzmueller 2021-04-12 09:19:27 +02:00
parent b10777e059
commit 9a32d7b07c

View File

@ -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 // For some strange reason gcc 3.2 and 3.3 do not accept
// Buffer buffer(string(), false); // Buffer buffer(string(), false);
Buffer buffer("", false); Buffer buffer("", false);
buffer.setInternal(true);
buffer.setUnnamed(true); buffer.setUnnamed(true);
if (buffer.readString(lyx)) { if (buffer.readString(lyx)) {
cur.recordUndo(); 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 // For some strange reason gcc 3.2 and 3.3 do not accept
// Buffer buffer(string(), false); // Buffer buffer(string(), false);
Buffer buffer("", false); Buffer buffer("", false);
buffer.setInternal(true);
buffer.setUnnamed(true); buffer.setUnnamed(true);
available = buffer.importString(names[i], text, errorList); available = buffer.importString(names[i], text, errorList);
if (available) if (available)