mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
Get rid of Paragraph::insetAllowed()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26372 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6cc68a2663
commit
0b18d24e56
@ -1304,12 +1304,6 @@ void Paragraph::insertInset(pos_type pos, Inset * inset,
|
||||
}
|
||||
|
||||
|
||||
bool Paragraph::insetAllowed(InsetCode code)
|
||||
{
|
||||
return !d->inset_owner_ || d->inset_owner_->insetAllowed(code);
|
||||
}
|
||||
|
||||
|
||||
void Paragraph::resetFonts(Font const & font)
|
||||
{
|
||||
d->fontlist_.clear();
|
||||
|
@ -308,8 +308,6 @@ public:
|
||||
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;
|
||||
|
@ -47,7 +47,8 @@ static bool moveItem(Paragraph & fromPar, pos_type fromPos,
|
||||
tmpInset = fromPar.releaseInset(fromPos);
|
||||
}
|
||||
|
||||
if (!toPar.insetAllowed(tmpInset->lyxCode())) {
|
||||
Inset * inset = toPar.inInset();
|
||||
if (inset && inset->insetAllowed(tmpInset->lyxCode())) {
|
||||
delete tmpInset;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user