mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
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:
parent
53ff578195
commit
7d888cc5e0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user