X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathColor.cpp;h=ea4f4ef6e29793c84a8d62be1a906f6523dc7111;hb=02e82157ec583c3900e359de86be79fac6512387;hp=cbf6cb5d860cf455e92fcbe34f1f798f277ab7ef;hpb=ccc0e03fdc4c880685db016d97cdea802512d104;p=lyx.git diff --git a/src/mathed/InsetMathColor.cpp b/src/mathed/InsetMathColor.cpp index cbf6cb5d86..ea4f4ef6e2 100644 --- a/src/mathed/InsetMathColor.cpp +++ b/src/mathed/InsetMathColor.cpp @@ -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; } } }