diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-17 15:38:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-18 20:36:35 +0200 |
commit | 1f59cbe36c9899f6fa9a869331c9be454abd4606 (patch) | |
tree | ee08259c1740d3971b226ebfa59cb000a31542b7 /sw/source/core/view | |
parent | 2d0bdcc586af71dae665646b37177fa104c50906 (diff) |
simplify some SwRect code - use the SwRect Add* variants
which makes it easier to assert the correct stuff in later commits.
And add AddTop() and AddLeft() methods for symmetry.
Change-Id: I0e03d9d1e933fc14eb007f6f31862f14fee9ef7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92451
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/view')
-rw-r--r-- | sw/source/core/view/vdraw.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/view/vdraw.cxx b/sw/source/core/view/vdraw.cxx index 4f6853615138..b59e432757b4 100644 --- a/sw/source/core/view/vdraw.cxx +++ b/sw/source/core/view/vdraw.cxx @@ -182,10 +182,10 @@ bool SwViewShellImp::IsDragPossible( const Point &rPoint ) else aRect = GetShell()->GetLayout()->getFrameArea(); - aRect.Top( aRect.Top() - FUZZY_EDGE ); - aRect.Bottom( aRect.Bottom() + FUZZY_EDGE ); - aRect.Left( aRect.Left() - FUZZY_EDGE ); - aRect.Right( aRect.Right() + FUZZY_EDGE ); + aRect.AddTop (- FUZZY_EDGE ); + aRect.AddBottom( FUZZY_EDGE ); + aRect.AddLeft (- FUZZY_EDGE ); + aRect.AddRight ( FUZZY_EDGE ); return aRect.IsInside( rPoint ); } |