summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/pagechg.cxx
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/layout/pagechg.cxx
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/layout/pagechg.cxx')
-rw-r--r--sw/source/core/layout/pagechg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index c9f2469591dd..4a29018a424d 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -1394,7 +1394,7 @@ SwTwips SwRootFrame::GrowFrame( SwTwips nDist, bool bTst, bool )
if ( !bTst )
{
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
- aFrm.SSize().AdjustHeight(nDist );
+ aFrm.AddHeight(nDist );
}
return nDist;
@@ -1408,7 +1408,7 @@ SwTwips SwRootFrame::ShrinkFrame( SwTwips nDist, bool bTst, bool )
if ( !bTst )
{
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
- aFrm.SSize().AdjustHeight( -nDist );
+ aFrm.AddHeight( -nDist );
}
return nDist;
@@ -1698,7 +1698,7 @@ Size SwRootFrame::ChgSize( const Size& aNewSize )
{
{
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
- aFrm.SSize() = aNewSize;
+ aFrm.SSize(aNewSize);
}
InvalidatePrt_();