]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.cpp
Get rid of Inset::setPosCache
[lyx.git] / src / mathed / InsetMathColor.cpp
index 0a6d0aa6b9f21ae6691c1915322adc16fb75b89b..ea4f4ef6e29793c84a8d62be1a906f6523dc7111 100644 (file)
@@ -49,7 +49,7 @@ Inset * InsetMathColor::clone() const
 void InsetMathColor::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
-       metricsMarkers(dim);
+       metricsMarkers(mi, dim);
 }
 
 
@@ -60,7 +60,6 @@ void InsetMathColor::draw(PainterInfo & pi, int x, int y) const
        cell(0).draw(pi, x + 1, y);
        pi.base.font.setColor(origcol);
        drawMarkers(pi, x, y);
-       setPosCache(pi, x, y);
 }