diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp index 3d950aac9f..a9afb3b973 100644 --- a/src/frontends/qt4/GuiPainter.cpp +++ b/src/frontends/qt4/GuiPainter.cpp @@ -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); }