}
-bool Paragraph::insetAllowed(InsetCode code)
-{
- return !d->inset_owner_ || d->inset_owner_->insetAllowed(code);
-}
-
-
void Paragraph::resetFonts(Font const & font)
{
d->fontlist_.clear();
void insertInset(pos_type pos, Inset * inset,
Font const &, Change const & change);
///
- bool insetAllowed(InsetCode code);
- ///
Inset * getInset(pos_type pos);
///
Inset const * getInset(pos_type pos) const;
tmpInset = fromPar.releaseInset(fromPos);
}
- if (!toPar.insetAllowed(tmpInset->lyxCode())) {
+ Inset * inset = toPar.inInset();
+ if (inset && inset->insetAllowed(tmpInset->lyxCode())) {
delete tmpInset;
return false;
}