From 7d888cc5e016c8f0621348630969539fd4d4ddad Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 13 Sep 2008 15:32:26 +0000 Subject: [PATCH] Fix silly bug spotted by Vincent in r26372 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26383 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CutAndPaste.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index b31117d280..87e0803b78 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -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); } -- 2.39.5