Skip insets when checking for uncodable chars to paste.

Fixes paste of quote insets to ERT/chunk.

(cherry picked from commit 8f9b733e67)
This commit is contained in:
Juergen Spitzmueller 2018-02-17 12:27:26 +01:00
parent ae76c030d3
commit 6ce83844dc

View File

@ -168,6 +168,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