diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-04 14:46:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-04 19:17:04 +0200 |
commit | 7441aaa4c5b2215e369c62e22af098184e8ce807 (patch) | |
tree | 17e129291a514a1f732842db3f4487ea31073342 /vcl/source/control | |
parent | d408fe5cd45c9594feecec727ab2f73c66e361d0 (diff) |
unnecessary LogicToPixel in RadioButton::Draw
we are already using logical pixels here, and ImplDraw wants logical
pixels
Change-Id: I0edc990c9943d68228600a15ccadca62127b02bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153967
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control')
-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 ec171d91137d..a99e9733496c 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -2531,7 +2531,6 @@ void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, if ( !maImage ) { 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 ); @@ -2565,7 +2564,7 @@ void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, pDev->SetTextColor( GetTextColor() ); pDev->SetTextFillColor(); - ImplDraw( pDev, nFlags, aPos, aSize, + ImplDraw( pDev, nFlags, rPos, aSize, aImageSize, aStateRect, aMouseRect ); Point aCenterPos = aStateRect.Center(); |