X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathCancel.cpp;h=098f2a8af9f6a5ac81bb9ee4d3aaf2f5b306d761;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=e0c86114a8ed71f9b680cdc1c5e68dfa9c38ef49;hpb=e6fec70c4844286329214e50ec6fff3b8ec3953f;p=lyx.git diff --git a/src/mathed/InsetMathCancel.cpp b/src/mathed/InsetMathCancel.cpp index e0c86114a8..098f2a8af9 100644 --- a/src/mathed/InsetMathCancel.cpp +++ b/src/mathed/InsetMathCancel.cpp @@ -39,7 +39,6 @@ void InsetMathCancel::metrics(MetricsInfo & mi, Dimension & dim) const { Changer dummy = mi.base.changeEnsureMath(); cell(0).metrics(mi, dim); - metricsMarkers(mi, dim); } @@ -48,7 +47,7 @@ void InsetMathCancel::draw(PainterInfo & pi, int x, int y) const Changer dummy = pi.base.changeEnsureMath(); // We first draw the text and then an arrow ColorCode const origcol = pi.base.font.color(); - cell(0).draw(pi, x + 1, y); + cell(0).draw(pi, x, y); Dimension const dim = dimension(*pi.base.bv); int const t = pi.base.solidLineThickness(); @@ -75,8 +74,6 @@ void InsetMathCancel::draw(PainterInfo & pi, int x, int y) const pi.pain.line(x2, y1, x1, y2, origcol, pi.pain.line_solid, t); pi.pain.line(x2, y2, x1, y1, origcol, pi.pain.line_solid, t); } - - drawMarkers(pi, x, y); }