From: Jean-Marc Lasgouttes Date: Tue, 17 Jan 2017 15:28:48 +0000 (+0100) Subject: Fix glitch in drawing fractions X-Git-Tag: 2.3.0alpha1~459 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f73bb3f16e30546288a52248deb21ce90074bae0;p=features.git Fix glitch in drawing fractions This is a fixup to 89662a68. --- diff --git a/src/mathed/InsetMathFrac.cpp b/src/mathed/InsetMathFrac.cpp index 465d1facd1..fba920dea2 100644 --- a/src/mathed/InsetMathFrac.cpp +++ b/src/mathed/InsetMathFrac.cpp @@ -301,7 +301,7 @@ void InsetMathFrac::draw(PainterInfo & pi, int x, int y) const : Changer(); // nice fraction Changer dummy2 = pi.base.changeScript(); - cell(0).draw(pi, xx, y - dy); + cell(0).draw(pi, xx + 1, y - dy); // reference LaTeX code from nicefrac.sty: // \mkern-2mu/\mkern-1mu if (latexkeys const * slash = slash_symbol()) { @@ -354,7 +354,7 @@ void InsetMathFrac::draw(PainterInfo & pi, int x, int y) const cell(1).draw(pi, m - dim1.wid / 2, y + dim1.asc + dy/2 - dy + t); // horizontal line if (kind_ != ATOP) - pi.pain.line(x, y - dy, x + dim.wid - 2, y - dy, + pi.pain.line(x, y - dy, x + dim.wid, y - dy, pi.base.font.color(), pi.pain.line_solid, t); } } //switch (kind_)