From e6fec70c4844286329214e50ec6fff3b8ec3953f Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Tue, 20 Dec 2016 00:15:59 +0100 Subject: [PATCH] Thickness of \cancel --- src/mathed/InsetMathCancel.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mathed/InsetMathCancel.cpp b/src/mathed/InsetMathCancel.cpp index 0e91575d8d..e0c86114a8 100644 --- a/src/mathed/InsetMathCancel.cpp +++ b/src/mathed/InsetMathCancel.cpp @@ -50,6 +50,7 @@ void InsetMathCancel::draw(PainterInfo & pi, int x, int y) const ColorCode const origcol = pi.base.font.color(); cell(0).draw(pi, x + 1, y); Dimension const dim = dimension(*pi.base.bv); + int const t = pi.base.solidLineThickness(); /* * y1 \ / @@ -67,12 +68,12 @@ void InsetMathCancel::draw(PainterInfo & pi, int x, int y) const int const y2 = y + dim.des; if (kind_ == cancel) - pi.pain.line(x2, y1, x1, y2, origcol); + pi.pain.line(x2, y1, x1, y2, origcol, pi.pain.line_solid, t); else if (kind_ == bcancel) - pi.pain.line(x2, y2, x1, y1, origcol); + pi.pain.line(x2, y2, x1, y1, origcol, pi.pain.line_solid, t); else if (kind_ == xcancel) { - pi.pain.line(x2, y1, x1, y2, origcol); - pi.pain.line(x2, y2, x1, y1, origcol); + 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); -- 2.39.5