]> git.lyx.org Git - features.git/blobdiff - src/CutAndPaste.cpp
Skip insets when checking for uncodable chars to paste.
[features.git] / src / CutAndPaste.cpp
index 92d6d95789e28f9ecec62bb33f0b1846d43ff245..1d4299ad6cc796a2bf1f36c68b4fab82d264fc3f 100644 (file)
@@ -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