summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdpagv.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-20 11:03:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 06:04:19 +0100
commit924c0e34fdc36cd44100dafc2c68656ce32374e6 (patch)
tree05548e06d476b1244abb3ef83013514c7f991b3e /svx/source/svdraw/svdpagv.cxx
parentfd20935bb819cb24e71f4f91b97149c35bc5987d (diff)
loplugin:changetoolsgen in svx
and fix the regex in the plugin for matching += operator Change-Id: I26b3e3fac1d4ef3e756cc9431b983b5f27ee76d6 Reviewed-on: https://gerrit.libreoffice.org/50037 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdpagv.cxx')
-rw-r--r--svx/source/svdraw/svdpagv.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdpagv.cxx b/svx/source/svdraw/svdpagv.cxx
index 764cd48aa212..728c06b861c3 100644
--- a/svx/source/svdraw/svdpagv.cxx
+++ b/svx/source/svdraw/svdpagv.cxx
@@ -142,8 +142,8 @@ SdrPageView::SdrPageView(SdrPage* pPage1, SdrView& rNewView)
if(mpPage)
{
- aPgOrg.X()=mpPage->GetLeftBorder();
- aPgOrg.Y()=mpPage->GetUpperBorder();
+ aPgOrg.setX(mpPage->GetLeftBorder() );
+ aPgOrg.setY(mpPage->GetUpperBorder() );
}
mbHasMarked = false;
aLayerVisi.SetAll();
@@ -701,10 +701,10 @@ void SdrPageView::ImpInvalidateHelpLineArea(sal_uInt16 nNum) const
OutputDevice& rOutDev = pCandidate->GetOutputDevice();
tools::Rectangle aR(rHL.GetBoundRect(rOutDev));
Size aSiz(rOutDev.PixelToLogic(Size(1,1)));
- aR.Left() -= aSiz.Width();
- aR.Right() += aSiz.Width();
- aR.Top() -= aSiz.Height();
- aR.Bottom() += aSiz.Height();
+ aR.AdjustLeft( -(aSiz.Width()) );
+ aR.AdjustRight(aSiz.Width() );
+ aR.AdjustTop( -(aSiz.Height()) );
+ aR.AdjustBottom(aSiz.Height() );
const_cast<SdrView&>(GetView()).InvalidateOneWin(static_cast<vcl::Window&>(rOutDev), aR);
}
}