}
-auto_ptr<InsetBase> InsetMathScript::doClone() const
+auto_ptr<Inset> InsetMathScript::doClone() const
{
- return auto_ptr<InsetBase>(new InsetMathScript(*this));
+ return auto_ptr<Inset>(new InsetMathScript(*this));
}
else {
nuc().setXY(*pi.base.bv, x + dxx(), y);
if (editing(pi.base.bv))
- pi.draw(x + dxx(), y, char_type('.'));
+ pi.draw(x + dxx(), y, char_type('.'));
}
ScriptChanger dummy(pi.base);
if (hasUp())
}
-InsetBase::idx_type InsetMathScript::idxOfScript(bool up) const
+Inset::idx_type InsetMathScript::idxOfScript(bool up) const
{
if (nargs() == 1)
return 0;
}
// Are we 'up'?
- if (has(up) && cur.idx() == idxOfScript(true)) {
+ if (cur.idx() == idxOfScript(true)) {
// can't go further up
if (up)
return false;
}
// Are we 'down'?
- if (has(up) && cur.idx() == idxOfScript(false)) {
+ if (cur.idx() == idxOfScript(false)) {
// can't go further down
if (!up)
return false;