mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 05:37:11 +00:00
Fix bug #7956: Assertion When Trying to Paste Into Table
For some unknown reason, the paste code likes to call Cursor::setSelection(), which is not appropriate here since we are not trying to set a selection at this point.
This commit is contained in:
parent
e525ee6db4
commit
ad7deaabeb
@ -1002,7 +1002,6 @@ void pasteFromStack(Cursor & cur, ErrorList & errorList, size_t sel_index)
|
|||||||
cur.recordUndo();
|
cur.recordUndo();
|
||||||
pasteParagraphList(cur, theCuts[sel_index].first,
|
pasteParagraphList(cur, theCuts[sel_index].first,
|
||||||
theCuts[sel_index].second, errorList);
|
theCuts[sel_index].second, errorList);
|
||||||
cur.setSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1026,7 +1025,6 @@ void pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs)
|
|||||||
cur.recordUndo();
|
cur.recordUndo();
|
||||||
pasteParagraphList(cur, buffer.paragraphs(),
|
pasteParagraphList(cur, buffer.paragraphs(),
|
||||||
buffer.params().documentClassPtr(), errorList);
|
buffer.params().documentClassPtr(), errorList);
|
||||||
cur.setSelection();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1041,7 +1039,6 @@ void pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs)
|
|||||||
cur.text()->insertStringAsParagraphs(cur, text, cur.current_font);
|
cur.text()->insertStringAsParagraphs(cur, text, cur.current_font);
|
||||||
else
|
else
|
||||||
cur.text()->insertStringAsLines(cur, text, cur.current_font);
|
cur.text()->insertStringAsLines(cur, text, cur.current_font);
|
||||||
cur.setSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user