]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBoxed.cpp
Properly fix bug 3258.
[lyx.git] / src / mathed / InsetMathBoxed.cpp
index 2ff48888f771fc0aaba0674460a658a2098333e7..60835be301dd7da6800eae1424fc9ad6108e1ee9 100644 (file)
@@ -14,7 +14,7 @@
 #include "MathData.h"
 #include "MathStream.h"
 #include "LaTeXFeatures.h"
-#include "LColor.h"
+#include "Color.h"
 
 #include "support/std_ostream.h"
 #include "frontends/Painter.h"
@@ -30,9 +30,9 @@ InsetMathBoxed::InsetMathBoxed()
 {}
 
 
-auto_ptr<InsetBase> InsetMathBoxed::doClone() const
+auto_ptr<Inset> InsetMathBoxed::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathBoxed(*this));
+       return auto_ptr<Inset>(new InsetMathBoxed(*this));
 }
 
 
@@ -50,7 +50,7 @@ bool InsetMathBoxed::metrics(MetricsInfo & mi, Dimension & dim) const
 void InsetMathBoxed::draw(PainterInfo & pi, int x, int y) const
 {
        pi.pain.rectangle(x + 1, y - dim_.ascent() + 1,
-               dim_.width() - 2, dim_.height() - 2, LColor::foreground);
+               dim_.width() - 2, dim_.height() - 2, Color::foreground);
        cell(0).draw(pi, x + 3, y);
        setPosCache(pi, x, y);
 }