]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSqrt.cpp
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathSqrt.cpp
index 81d88cee1dd0ca988fd06d0e56a5e2d2c5fedf0c..941ad92b92f8d8e41a4af15b78dbc5c5f2d74b98 100644 (file)
@@ -14,7 +14,6 @@
 #include "MathData.h"
 #include "MathStream.h"
 #include "TextPainter.h"
-#include "Color.h"
 #include "frontends/Painter.h"
 
 
@@ -38,8 +37,6 @@ void InsetMathSqrt::metrics(MetricsInfo & mi, Dimension & dim) const
        dim.des += 2;
        dim.wid += 12;
        metricsMarkers(dim);
-       // Cache the inset dimension. 
-       setDimCache(mi, dim);
 }
 
 
@@ -52,11 +49,11 @@ void InsetMathSqrt::draw(PainterInfo & pi, int x, int y) const
        int xp[3];
        int yp[3];
        pi.pain.line(x + dim.width(), y - a + 1,
-               x + 8, y - a + 1, Color::math);
+               x + 8, y - a + 1, Color_math);
        xp[0] = x + 8;            yp[0] = y - a + 1;
        xp[1] = x + 5;            yp[1] = y + d - 1;
        xp[2] = x;                yp[2] = y + (d - a)/2;
-       pi.pain.lines(xp, yp, 3, Color::math);
+       pi.pain.lines(xp, yp, 3, Color_math);
        drawMarkers(pi, x, y);
 }