]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFrac.cpp
* src/frontends/controllers/Dialog.{cpp,h}:
[lyx.git] / src / mathed / InsetMathFrac.cpp
index 0237227f8e456b5e7461bbe02369644101dc2bba..f1663aea79d50aa6fa9f12c712d85f04fd6dd5ee 100644 (file)
@@ -33,9 +33,9 @@ InsetMathFrac::InsetMathFrac(Kind kind)
 {}
 
 
-auto_ptr<InsetBase> InsetMathFrac::doClone() const
+auto_ptr<Inset> InsetMathFrac::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathFrac(*this));
+       return auto_ptr<Inset>(new InsetMathFrac(*this));
 }
 
 
@@ -79,22 +79,22 @@ void InsetMathFrac::draw(PainterInfo & pi, int x, int y) const
        int m = x + dim_.wid / 2;
        FracChanger dummy(pi.base);
        if (kind_ == NICEFRAC) {
-               cell(0).draw(pi, x + 2, 
+               cell(0).draw(pi, x + 2,
                                y - cell(0).descent() - 5);
                cell(1).draw(pi, x + cell(0).width() + 5,
                                y + cell(1).ascent() / 2);
-               pi.pain.line(x + cell(0).width(), 
-                               y + dim_.des - 2, 
-                               x + cell(0).width() + 5, 
+               pi.pain.line(x + cell(0).width(),
+                               y + dim_.des - 2,
+                               x + cell(0).width() + 5,
                                y - dim_.asc + 2, Color::math);
        } else {
-               cell(0).draw(pi, m - cell(0).width() / 2, 
+               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);
        }
        if (kind_ == FRAC || kind_ == OVER)
-               pi.pain.line(x + 1, y - 5, 
+               pi.pain.line(x + 1, y - 5,
                                x + dim_.wid - 2, y - 5, Color::math);
        drawMarkers(pi, x, y);
 }