[LyX/2.3.x] #11925 Remove the gap between button frame and button background (by Daniel Ramoeller)

Jean-Marc Lasgouttes lasgouttes at lyx.org
Thu Oct 21 19:47:00 UTC 2021


commit dd18429aaa11b835cdb2cf96c841d756b8da7f59
Author: Stephan Witt <switt at lyx.org>
Date:   Sun Feb 14 19:04:33 2021 +0100

    #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 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp
index 3d950aa..a9afb3b 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);
 }


More information about the lyx-cvs mailing list