diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-04 14:36:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-04 19:16:55 +0200 |
commit | d408fe5cd45c9594feecec727ab2f73c66e361d0 (patch) | |
tree | aba257a44368e5f6a255c8a61e30e2d15e4c386e /vcl | |
parent | 77befddec9486403c471b2beafd4ca0fd2429c5a (diff) |
unnecessary LogicToPixel in CheckBox::Draw
we are already in logical pixels here, and the ImplDraw call expects
logical pixels
Change-Id: I7eab69b92998fd36c811fc7ac3949adb2f4fff7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153966
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/button.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 69646cc9637e..ec171d91137d 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -3355,7 +3355,6 @@ void CheckBox::Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlags nFlags ) { MapMode aResMapMode( MapUnit::Map100thMM ); - Point aPos = pDev->LogicToPixel( rPos ); Size aSize = GetSizePixel(); Size aImageSize = pDev->LogicToPixel( Size( 300, 300 ), aResMapMode ); Size aBrd1Size = pDev->LogicToPixel( Size( 20, 20 ), aResMapMode ); @@ -3392,7 +3391,7 @@ void CheckBox::Draw( OutputDevice* pDev, const Point& rPos, pDev->SetTextColor( GetTextColor() ); pDev->SetTextFillColor(); - ImplDraw( pDev, nFlags, aPos, aSize, + ImplDraw( pDev, nFlags, rPos, aSize, aImageSize, aStateRect, aMouseRect ); pDev->SetLineColor(); |