summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdsnpv.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-16 09:32:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-16 11:19:21 +0200
commit0b021f89f60208877427eaf004e25db8be3832f6 (patch)
tree0eec9e17fbdbf1d99ee1ab258cea829c8218f861 /svx/source/svdraw/svdsnpv.cxx
parente5d9b5ffc423cbb314cde1f66f7bebf4db30b1e6 (diff)
rename some unnecessary contractions, Lft-Left, etc.
Change-Id: Idf4ab2d4d2550a02c0c50a981d94c67b111082a9 Reviewed-on: https://gerrit.libreoffice.org/41204 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdsnpv.cxx')
-rw-r--r--svx/source/svdraw/svdsnpv.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdsnpv.cxx b/svx/source/svdraw/svdsnpv.cxx
index 4923e7de66d3..4fb3affa15bc 100644
--- a/svx/source/svdraw/svdsnpv.cxx
+++ b/svx/source/svdraw/svdsnpv.cxx
@@ -303,12 +303,12 @@ SdrSnap SdrSnapView::SnapPos(Point& rPnt, const SdrPageView* pPV) const
}
if (mbBordVisible && bBordSnap) {
SdrPage* pPage=pPV->GetPage();
- long xs=pPage->GetWdt();
- long ys=pPage->GetHgt();
- long lft=pPage->GetLftBorder();
- long rgt=pPage->GetRgtBorder();
- long upp=pPage->GetUppBorder();
- long lwr=pPage->GetLwrBorder();
+ long xs=pPage->GetWidth();
+ long ys=pPage->GetHeight();
+ long lft=pPage->GetLeftBorder();
+ long rgt=pPage->GetRightBorder();
+ long upp=pPage->GetUpperBorder();
+ long lwr=pPage->GetLowerBorder();
long a;
a=x- lft ; if (std::abs(a)<=mx) { dx1=-a; if (std::abs(dx1)<std::abs(dx)) dx=dx1; } // left margin
a=x-(xs-rgt); if (std::abs(a)<=mx) { dx1=-a; if (std::abs(dx1)<std::abs(dx)) dx=dx1; } // right margin