Fix glitch in drawing fractions

This is a fixup to 89662a68.
This commit is contained in:
Jean-Marc Lasgouttes 2017-01-17 16:28:48 +01:00
parent 596c9065e6
commit f73bb3f16e

View File

@ -301,7 +301,7 @@ void InsetMathFrac::draw(PainterInfo & pi, int x, int y) const
: Changer(); : Changer();
// nice fraction // nice fraction
Changer dummy2 = pi.base.changeScript(); 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: // reference LaTeX code from nicefrac.sty:
// \mkern-2mu/\mkern-1mu // \mkern-2mu/\mkern-1mu
if (latexkeys const * slash = slash_symbol()) { 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); cell(1).draw(pi, m - dim1.wid / 2, y + dim1.asc + dy/2 - dy + t);
// horizontal line // horizontal line
if (kind_ != ATOP) 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); pi.base.font.color(), pi.pain.line_solid, t);
} }
} //switch (kind_) } //switch (kind_)