[Libreoffice-commits] core.git: vcl/source
G??bor Koruhely
koruhelygabor at gmail.com
Thu Nov 23 19:39:24 UTC 2017
vcl/source/control/button.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 788515f4ecc26275746e97f8f35cab87799797a6
Author: G??bor Koruhely <koruhelygabor at gmail.com>
Date: Wed Nov 22 15:25:38 2017 +0100
tdf#111782: fix Wrong rendering of image radiobutton on Split Cells dialog
The radio button icon was too big and there weren't enough space to render the
bottom border, so I reduced the size of the radio button icon.
Change-Id: Ie93f21ca730329716d0d209726e4d41c5d235b88
Reviewed-on: https://gerrit.libreoffice.org/45097
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index a67ebb3ffe03..d39a9f72de1b 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1938,6 +1938,11 @@ void RadioButton::ImplDrawRadioButtonState(vcl::RenderContext& rRenderContext)
aImageSize.Width() = CalcZoom(aImageSize.Width());
aImageSize.Height() = CalcZoom(aImageSize.Height());
+ aImageRect.Left()++;
+ aImageRect.Top()++;
+ aImageRect.Right()--;
+ aImageRect.Bottom()--;
+
// display border and selection status
aImageRect = aDecoView.DrawFrame(aImageRect, DrawFrameStyle::DoubleIn);
if ((ImplGetButtonState() & DrawButtonFlags::Pressed) || !bEnabled)
More information about the Libreoffice-commits
mailing list