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: lyx-2.4.0dev-acb2ca7b~3870 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8f9b733e6720c0709ea25c4bf56847e01faadd6f;p=features.git Skip insets when checking for uncodable chars to paste. Fixes paste of quote insets to ERT/chunk. --- diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 92d6d95789..1d4299ad6c 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -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