]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTFrac.cpp
* Inset and derivatives: insetName() -> name()
[lyx.git] / src / mathed / InsetMathTFrac.cpp
index 84ed2b8157f686ee03e00f57124b910060c26590..5a1fd86df8ed9027ccb76acefa874cdf0b0156d3 100644 (file)
@@ -16,7 +16,7 @@
 #include "MathStream.h"
 
 #include "LaTeXFeatures.h"
-#include "LColor.h"
+#include "Color.h"
 
 #include "frontends/Painter.h"
 
@@ -34,9 +34,9 @@ InsetMathTFrac::InsetMathTFrac()
 {}
 
 
-auto_ptr<InsetBase> InsetMathTFrac::doClone() const
+auto_ptr<Inset> InsetMathTFrac::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathTFrac(*this));
+       return auto_ptr<Inset>(new InsetMathTFrac(*this));
 }
 
 
@@ -61,7 +61,7 @@ void InsetMathTFrac::draw(PainterInfo & pi, int x, int y) const
        int m = x + dim_.wid / 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);
-       pi.pain.line(x + 1, y - 5, x + dim_.wid - 2, y - 5, LColor::math);
+       pi.pain.line(x + 1, y - 5, x + dim_.wid - 2, y - 5, Color::math);
        setPosCache(pi, x, y);
 }