commit 8f9b733e6720c0709ea25c4bf56847e01faadd6f
Author: Juergen Spitzmueller <[email protected]>
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.
---
src/CutAndPaste.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp
index 92d6d95..1d4299a 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