mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Mark c&p buffers internal. Cures assertion (#12246)
This commit is contained in:
parent
b10777e059
commit
9a32d7b07c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user