summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-07-12 14:04:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-07-12 15:25:33 +0200
commit972aea543ef94066946dedd6cf6890d34869d89c (patch)
treef5d959f4bd28ce89f36ccd38215145bf80798001 /toolkit/source
parent1afe0df7f3a8d19a034257dcd68e182205dfc649 (diff)
simplify
Change-Id: I276ba7809b08a359b377ea56259140675c5e00a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154354 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/hatchwindow/ipwin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/toolkit/source/hatchwindow/ipwin.cxx b/toolkit/source/hatchwindow/ipwin.cxx
index d21e94166c7c..52d3668b7ffb 100644
--- a/toolkit/source/hatchwindow/ipwin.cxx
+++ b/toolkit/source/hatchwindow/ipwin.cxx
@@ -189,9 +189,7 @@ short SvResizeHelper::SelectMove( vcl::Window * pWin, const Point & rPos )
}
else
{
- tools::Rectangle aRect( GetTrackRectPixel( rPos ) );
- aRect.SetSize( pWin->PixelToLogic( aRect.GetSize() ) );
- aRect.SetPos( pWin->PixelToLogic( aRect.TopLeft() ) );
+ tools::Rectangle aRect = pWin->PixelToLogic(GetTrackRectPixel( rPos ));
pWin->ShowTracking( aRect );
}
return nGrab;