From: Juergen Spitzmueller Date: Sat, 17 Feb 2018 11:27:26 +0000 (+0100) Subject: Skip insets when checking for uncodable chars to paste. X-Git-Tag: 2.3.0~41 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6ce83844dc1a7572efec54ce386557a056517483;p=features.git Skip insets when checking for uncodable chars to paste. Fixes paste of quote insets to ERT/chunk. (cherry picked from commit 8f9b733e6720c0709ea25c4bf56847e01faadd6f) --- diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index f611d59395..7c158453ee 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