From 6ce83844dc1a7572efec54ce386557a056517483 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 17 Feb 2018 12:27:26 +0100 Subject: [PATCH] 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 file changed, 3 insertions(+) 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