]> git.lyx.org Git - features.git/commitdiff
Fixup 16af6e7c
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 4 Dec 2017 10:20:13 +0000 (11:20 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 4 Dec 2017 10:20:13 +0000 (11:20 +0100)
Avoid an extra pixel above horizontal rule.

src/mathed/InsetMathRoot.cpp

index 8650cb712d1c7a08a0685fc130f3b71b8048bbf8..348b4e9cab67743b8be4275fe125424935d7a04e 100644 (file)
@@ -123,7 +123,7 @@ void mathed_draw_root(PainterInfo & pi, int x, int y, MathData const & nucleus,
        pi.pain.line(x + dim.width(), y - a + 2 * t,
                     x + wl, y - a + 2 * t, pi.base.font.color(),
                     Painter::line_solid, t);
-       xp[0] = x + wl;              yp[0] = y - a + 2 * t;
+       xp[0] = x + wl;              yp[0] = y - a + 2 * t + 1;
        xp[1] = x + wl - w / 2;      yp[1] = y + d;
        xp[2] = x + wl - w + h / 4;  yp[2] = y + d - h;
        xp[3] = x + wl - w;          yp[3] = y + d - h + h / 4;