summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-20 14:26:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-21 18:08:55 +0100
commitbf68a2012a580c94ed562c2c9b032e2e973e0980 (patch)
tree945b591127e6b7442e2107ee54456f1b6e6ae774 /vcl
parentb1617acde182d1683bdfb529794d7456f8b4bf6d (diff)
RadioButton tick in a different place than CheckBox tick
since... commit 302a00a3190743f5e6d2b61e5b40e493c4744b7e Date: Thu Jun 6 17:14:53 2019 +0900 tdf#124947 fix hit area of the radio buttons, size in ios theme so under gen in tools, options, load/save, microsoft office the radio in export as: shading is much higher than the create mso lock file checkmark Change-Id: Ib057c0725352f6a178df006e92024fedf9b82b79 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109715 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 5fd00612a1a5..77d28a6ead49 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2018,7 +2018,6 @@ void RadioButton::ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags,
rMouseRect = tools::Rectangle(aPos, aSize);
rMouseRect.SetLeft(rPos.X());
- rMouseRect.SetTop(rPos.Y());
rStateRect.SetLeft( rPos.X() );
rStateRect.SetTop( rMouseRect.Top() );
@@ -3039,8 +3038,9 @@ void CheckBox::ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags,
ImplDrawAlignedImage( pDev, aPos, aSize, 1, nTextStyle );
- rMouseRect = tools::Rectangle( aPos, aSize );
+ rMouseRect = tools::Rectangle( aPos, aSize );
rMouseRect.SetLeft( rPos.X() );
+
rStateRect.SetLeft( rPos.X() );
rStateRect.SetTop( rMouseRect.Top() );