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
This commit is contained in:
Abdelrazak Younes 2008-09-13 15:32:26 +00:00
parent 53ff578195
commit 7d888cc5e0

View 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);
}