#include <config.h>
#include "InsetMathOverset.h"
-#include "MathArray.h"
+#include "MathData.h"
#include "MathStream.h"
-#include "LCursor.h"
+#include "Cursor.h"
#include "LaTeXFeatures.h"
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);
}
-bool InsetMathOverset::idxFirst(LCursor & cur) const
+bool InsetMathOverset::idxFirst(Cursor & cur) const
{
cur.idx() = 1;
cur.pos() = 0;
}
-bool InsetMathOverset::idxLast(LCursor & cur) const
+bool InsetMathOverset::idxLast(Cursor & cur) const
{
cur.idx() = 1;
cur.pos() = cur.lastpos();