diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-23 15:52:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 07:20:49 +0100 |
commit | 9bc8714308b6f4b85a4c756229ac8b670d009f42 (patch) | |
tree | 61210bfb945863595225f39cda711155cfe978ae /svx/source/svdraw/svdogrp.cxx | |
parent | 736ebd9a184752bcb756754e3af6b80cd2f4c480 (diff) |
move MovePoint and MoveRect into Rectangle and Point
Change-Id: Ie75c7c10288da00aac89479879e0b9fb1a4459b2
Reviewed-on: https://gerrit.libreoffice.org/50247
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdogrp.cxx')
-rw-r--r-- | svx/source/svdraw/svdogrp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdogrp.cxx b/svx/source/svdraw/svdogrp.cxx index 0ad320da6b8c..d2151f14f4e4 100644 --- a/svx/source/svdraw/svdogrp.cxx +++ b/svx/source/svdraw/svdogrp.cxx @@ -395,7 +395,7 @@ void SdrObjGroup::NbcSetLogicRect(const tools::Rectangle& rRect) void SdrObjGroup::NbcMove(const Size& rSiz) { - MovePoint(aRefPoint,rSiz); + aRefPoint.Move(rSiz); if (pSub->GetObjCount()!=0) { SdrObjList* pOL=pSub.get(); const size_t nObjCount = pOL->GetObjCount(); @@ -404,7 +404,7 @@ void SdrObjGroup::NbcMove(const Size& rSiz) pObj->NbcMove(rSiz); } } else { - MoveRect(aOutRect,rSiz); + aOutRect.Move(rSiz); SetRectsDirty(); } } @@ -491,7 +491,7 @@ void SdrObjGroup::NbcSetAnchorPos(const Point& rPnt) { aAnchor=rPnt; Size aSiz(rPnt.X()-aAnchor.X(),rPnt.Y()-aAnchor.Y()); - MovePoint(aRefPoint,aSiz); + aRefPoint.Move(aSiz); SdrObjList* pOL=pSub.get(); const size_t nObjCount=pOL->GetObjCount(); for (size_t i=0; i<nObjCount; ++i) { @@ -536,7 +536,7 @@ void SdrObjGroup::Move(const Size& rSiz) { if (rSiz.Width()!=0 || rSiz.Height()!=0) { tools::Rectangle aBoundRect0; if (pUserCall!=nullptr) aBoundRect0=GetLastBoundRect(); - MovePoint(aRefPoint,rSiz); + aRefPoint.Move(rSiz); if (pSub->GetObjCount()!=0) { // first move the connectors, then everything else SdrObjList* pOL=pSub.get(); @@ -550,7 +550,7 @@ void SdrObjGroup::Move(const Size& rSiz) if (!pObj->IsEdgeObj()) pObj->Move(rSiz); } } else { - MoveRect(aOutRect,rSiz); + aOutRect.Move(rSiz); SetRectsDirty(); } @@ -690,7 +690,7 @@ void SdrObjGroup::SetAnchorPos(const Point& rPnt) bool bChg=aAnchor!=rPnt; aAnchor=rPnt; Size aSiz(rPnt.X()-aAnchor.X(),rPnt.Y()-aAnchor.Y()); - MovePoint(aRefPoint,aSiz); + aRefPoint.Move(aSiz); // move the connectors first, everything else afterwards SdrObjList* pOL=pSub.get(); const size_t nObjCount = pOL->GetObjCount(); |