unneeded function

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4621 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-07-12 14:49:58 +00:00
parent 22b1e8d33a
commit 2cb500754a
2 changed files with 7 additions and 11 deletions

View File

@ -275,6 +275,8 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
case LFUN_MATH_NUMBER:
{
if (!hull())
break;
//lyxerr << "toggling all numbers\n";
if (display()) {
bv->lockedInsetStoreUndo(Undo::INSERT);
@ -303,6 +305,9 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
case LFUN_INSERT_LABEL:
{
if (!hull())
break;
bv->lockedInsetStoreUndo(Undo::INSERT);
MathCursor::row_type row = mathcursor->hullRow();
@ -402,14 +407,7 @@ bool InsetFormula::display() const
}
MathHullInset const * InsetFormula::hull() const
{
lyx::Assert(par_->asHullInset());
return par_->asHullInset();
}
MathHullInset * InsetFormula::hull()
MathHullInset * InsetFormula::hull() const
{
lyx::Assert(par_->asHullInset());
return par_->asHullInset();

View File

@ -92,9 +92,7 @@ private:
/// available in AMS only?
bool ams() const;
/// access to hull
MathHullInset * hull();
/// access to hull
MathHullInset const * hull() const;
MathHullInset * hull() const;
///
void handleExtern(string const & arg);