commit 6ce83844dc1a7572efec54ce386557a056517483 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Sat Feb 17 12:27:26 2018 +0100
Skip insets when checking for uncodable chars to paste. Fixes paste of quote insets to ERT/chunk. (cherry picked from commit 8f9b733e6720c0709ea25c4bf56847e01faadd6f) --- src/CutAndPaste.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index f611d59..7c15845 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -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