]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.cpp
Get rid of Inset::setPosCache
[lyx.git] / src / mathed / InsetMathColor.cpp
index cbf6cb5d860cf455e92fcbe34f1f798f277ab7ef..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);
 }
 
 
@@ -88,8 +87,10 @@ void InsetMathColor::validate(LaTeXFeatures & features) const
                        case Color_teal:
                        case Color_violet:
                                features.require("xcolor");
+                               break;
                        default:
                                features.require("color");
+                               break;
                }
        }
 }