]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
fix View Source for literate documents
[lyx.git] / 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);