Skip insets when checking for uncodable chars to paste.

Fixes paste of quote insets to ERT/chunk.
This commit is contained in:
Juergen Spitzmueller 2018-02-17 12:27:26 +01:00
parent 0d806799aa
commit 8f9b733e67

View File

@ -169,6 +169,9 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
for (size_t i = 0; i != insertion.size(); ++i) {
pos_type end = insertion[i].size();
for (pos_type j = 0; j != end; ++j) {
// skip insets
if (insertion[i].isInset(j))
continue;
char_type const c = insertion[i].getChar(j);
if (!e->encodable(c)) {
// do not track deletion