From dd18429aaa11b835cdb2cf96c841d756b8da7f59 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Sun, 14 Feb 2021 19:04:33 +0100 Subject: [PATCH] #11925 Remove the gap between button frame and button background (by Daniel Ramoeller) (cherry picked from commit 3d616bfc79866a8b7c97f1fd4d566eefb3da6f40) --- src/frontends/qt4/GuiPainter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }