summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorG??bor Koruhely <koruhelygabor@gmail.com>2017-11-22 15:25:38 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2017-11-23 20:38:59 +0100
commit788515f4ecc26275746e97f8f35cab87799797a6 (patch)
treefba9ecfc3fb6a47a26794ea43740c96073351105 /vcl/source
parentbb0fdccaac9495628e67d1ad1812e95b1c9397ba (diff)
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@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/button.cxx5
1 files changed, 5 insertions, 0 deletions
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)