using std::auto_ptr;
-auto_ptr<InsetBase> InsetMathOverset::doClone() const
+auto_ptr<Inset> InsetMathOverset::doClone() const
{
- return auto_ptr<InsetBase>(new InsetMathOverset(*this));
+ return auto_ptr<Inset>(new InsetMathOverset(*this));
}
void InsetMathOverset::draw(PainterInfo & pi, int x, int y) const
{
int m = x + width() / 2;
- int yo = y - cell(1).ascent() + cell(0).descent() - 1;
+ int yo = y - cell(1).ascent() - cell(0).descent() - 1;
cell(1).draw(pi, m - cell(1).width() / 2, y);
FracChanger dummy(pi.base);
cell(0).draw(pi, m - cell(0).width() / 2, yo);