]> git.lyx.org Git - features.git/commitdiff
Oups...
authorAbdelrazak Younes <younes@lyx.org>
Wed, 8 Oct 2008 14:06:20 +0000 (14:06 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 8 Oct 2008 14:06:20 +0000 (14:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26811 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 34a1c6aa5cdfd24eebf05a35195f2c14d7bf1221..1b6d5f7ccd4f707a066cd669cd90166e106a75fd 100644 (file)
@@ -457,7 +457,7 @@ bool Paragraph::insertInset(pos_type pos, Inset * inset,
 
        // Paragraph::insertInset() can be used in cut/copy/paste operation where
        // d->inset_owner_ is not set yet.
-       if (d->inset_owner_ && d->inset_owner_->insetAllowed(inset->lyxCode()))
+       if (d->inset_owner_ && !d->inset_owner_->insetAllowed(inset->lyxCode()))
                return false;
 
        d->insertChar(pos, META_INSET, change);