]> git.lyx.org Git - features.git/commitdiff
Fix silly bug spotted by Vincent in r26372
authorAbdelrazak Younes <younes@lyx.org>
Sat, 13 Sep 2008 15:32:26 +0000 (15:32 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 13 Sep 2008 15:32:26 +0000 (15:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26383 a592a061-630c-0410-9148-cb99ea01b6c8

src/CutAndPaste.cpp

index b31117d2802bd690b0cabbddb67734d7ea52d6ce..87e0803b78c1572c0f05f3b6417324788e7855b3 100644 (file)
@@ -195,7 +195,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
                for (pos_type i = 0; i < tmpbuf->size(); ++i) {
                        // do not track deletion of invalid insets
                        if (Inset * inset = tmpbuf->getInset(i))
-                               if (target_inset->insetAllowed(inset->lyxCode()))
+                               if (!target_inset->insetAllowed(inset->lyxCode()))
                                        tmpbuf->eraseChar(i--, false);
                }