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

Stephan Witt switt at lyx.org
Sun Feb 14 18:05:41 UTC 2021


commit 3d616bfc79866a8b7c97f1fd4d566eefb3da6f40
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)
---
 src/frontends/qt/GuiPainter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiPainter.cpp b/src/frontends/qt/GuiPainter.cpp
index 3b3b955..1de3d14 100644
--- a/src/frontends/qt/GuiPainter.cpp
+++ b/src/frontends/qt/GuiPainter.cpp
@@ -424,8 +424,8 @@ void GuiPainter::buttonText(int x, int baseline, docstring const & s,
 
 	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