diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-20 14:26:25 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-01-26 10:53:10 +0100 |
commit | 8444076007090fc521be256b91d8d8d9180386f6 (patch) | |
tree | dcdbbaa3f81cef7300c4a6b813257ded63090449 | |
parent | d3e8ce1aef43cb5910429791fb00b3be7667f99e (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/+/109684
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r-- | vcl/source/control/button.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index f84bbfb490bf..b84070e8487c 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -1996,7 +1996,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() ); @@ -3011,8 +3010,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() ); |