#11925 Remove the gap between button frame and button background (by Daniel Ramoeller)

(cherry picked from commit 3d616bfc79)
This commit is contained in:
Stephan Witt 2021-02-14 19:04:33 +01:00 committed by Jean-Marc Lasgouttes
parent 6a6cd13e64
commit dd18429aaa

View File

@ -563,8 +563,8 @@ void GuiPainter::buttonText(int x, int baseline, docstring const & s,
static int const d = offset / 2;
fillRectangle(x + d + 1, baseline - ascent + 1, width - offset - 1,
ascent + descent - 1, back);
fillRectangle(x + d, baseline - ascent, width - offset,
ascent + descent, back);
rectangle(x + d, baseline - ascent, width - offset, ascent + descent, frame);
text(x + offset, baseline, s, font);
}