]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dfracinset.C
some (yet unfinished) up/down work
[lyx.git] / src / mathed / math_dfracinset.C
index b13bdc71196c12100142f87561dea0767a30dc9e..3b0c76d2800997b8405bdb96fc28b41d1f4eaeba 100644 (file)
@@ -28,7 +28,7 @@ MathDfracInset::MathDfracInset()
 {}
 
 
-auto_ptr<InsetBase> MathDfracInset::clone() const
+auto_ptr<InsetBase> MathDfracInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathDfracInset(*this));
 }
@@ -51,6 +51,7 @@ void MathDfracInset::draw(PainterInfo & pi, int x, int y) const
        cell(0).draw(pi, m - cell(0).width() / 2, y - cell(0).descent() - 2 - 5);
        cell(1).draw(pi, m - cell(1).width() / 2, y + cell(1).ascent()  + 2 - 5);
        pi.pain.line(x + 1, y - 5, x + dim_.wid - 2, y - 5, LColor::math);
+       setPosCache(pi, x, y);
 }