summaryrefslogtreecommitdiff
path: root/sw/source/core/draw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-20 09:22:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-20 10:17:51 +0200
commit4e578adbc7dc5c4ece45b9f362e71b4cbe24752a (patch)
tree5fb6775ebc87d75ab09d1bc6b207e5612029c3ee /sw/source/core/draw
parent95a0ac68413d3ed0755d8e8d5336e8f0c546bcd1 (diff)
remove direct access to Size field on SwRect
so I can add asserts to prevent construction of invalid rectangles Change-Id: I01ac97b3cc780acbd182a646f0e072e518a45bee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92520 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/draw')
-rw-r--r--sw/source/core/draw/dflyobj.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx
index 964fde20a56d..756ea9e33fdf 100644
--- a/sw/source/core/draw/dflyobj.cxx
+++ b/sw/source/core/draw/dflyobj.cxx
@@ -1271,8 +1271,8 @@ SdrObject* SwVirtFlyDrawObj::CheckMacroHit( const SdrObjMacroHitRec& rRec ) cons
{
aRect.Pos().setX(aRect.Pos().getX() + rRec.nTol);
aRect.Pos().setY(aRect.Pos().getY() + rRec.nTol);
- aRect.SSize().AdjustHeight( -(2 * rRec.nTol) );
- aRect.SSize().AdjustWidth( -(2 * rRec.nTol) );
+ aRect.AddHeight( -(2 * rRec.nTol) );
+ aRect.AddWidth( -(2 * rRec.nTol) );
if( aRect.IsInside( rRec.aPos ) )
{