]> git.lyx.org Git - features.git/commitdiff
Skip insets when checking for uncodable chars to paste.
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 17 Feb 2018 11:27:26 +0000 (12:27 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 17 Feb 2018 11:27:26 +0000 (12:27 +0100)
Fixes paste of quote insets to ERT/chunk.

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