]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.cpp
When selecting math with the mouse, selection happens in the middle (#9748)
[lyx.git] / src / mathed / InsetMathColor.cpp
index ea4f4ef6e29793c84a8d62be1a906f6523dc7111..6cb996013b13d10682c788733f0edba5d66ad9f7 100644 (file)
@@ -49,7 +49,6 @@ Inset * InsetMathColor::clone() const
 void InsetMathColor::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
-       metricsMarkers(mi, dim);
 }
 
 
@@ -57,9 +56,8 @@ void InsetMathColor::draw(PainterInfo & pi, int x, int y) const
 {
        ColorCode origcol = pi.base.font.color();
        pi.base.font.setColor(lcolor.getFromLaTeXName(to_utf8(color_)));
-       cell(0).draw(pi, x + 1, y);
+       cell(0).draw(pi, x, y);
        pi.base.font.setColor(origcol);
-       drawMarkers(pi, x, y);
 }