summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviewsh.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-21 15:31:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-23 08:48:52 +0200
commit0d79d216886a71436e705c93829ed66a33270a9c (patch)
treeef29702266bca9df9f39b442505479b013891517 /sd/source/ui/view/drviewsh.cxx
parente8205f38c611cfc97ca0e32c911b3d373a94d230 (diff)
long->tools::Long in pyuno..sd
Change-Id: I67c1218d225f49ea9ce789433283ab85275e39a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104627 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/drviewsh.cxx')
-rw-r--r--sd/source/ui/view/drviewsh.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/view/drviewsh.cxx b/sd/source/ui/view/drviewsh.cxx
index f6e92706993d..72013d5fd99d 100644
--- a/sd/source/ui/view/drviewsh.cxx
+++ b/sd/source/ui/view/drviewsh.cxx
@@ -127,19 +127,19 @@ void DrawViewShell::MakeVisible(const ::tools::Rectangle& rRect, vcl::Window& rW
}
else
{
- const long distRight(rRect.Right() - aNewPos.X() - aVisAreaSize.Width());
+ const ::tools::Long distRight(rRect.Right() - aNewPos.X() - aVisAreaSize.Width());
if(distRight > 0)
{
- long mult = (distRight / nFreeSpaceX) + 1;
+ ::tools::Long mult = (distRight / nFreeSpaceX) + 1;
aNewPos.AdjustX(mult * nFreeSpaceX );
}
- const long distLeft(aNewPos.X() - rRect.Left());
+ const ::tools::Long distLeft(aNewPos.X() - rRect.Left());
if(distLeft > 0)
{
- long mult = (distLeft / nFreeSpaceX) + 1;
+ ::tools::Long mult = (distLeft / nFreeSpaceX) + 1;
aNewPos.AdjustX( -(mult * nFreeSpaceX) );
}
}
@@ -172,19 +172,19 @@ void DrawViewShell::MakeVisible(const ::tools::Rectangle& rRect, vcl::Window& rW
}
else
{
- const long distBottom(rRect.Bottom() - aNewPos.Y() - aVisAreaSize.Height());
+ const ::tools::Long distBottom(rRect.Bottom() - aNewPos.Y() - aVisAreaSize.Height());
if(distBottom > 0)
{
- long mult = (distBottom / nFreeSpaceY) + 1;
+ ::tools::Long mult = (distBottom / nFreeSpaceY) + 1;
aNewPos.AdjustY(mult * nFreeSpaceY );
}
- const long distTop(aNewPos.Y() - rRect.Top());
+ const ::tools::Long distTop(aNewPos.Y() - rRect.Top());
if(distTop > 0)
{
- long mult = (distTop / nFreeSpaceY) + 1;
+ ::tools::Long mult = (distTop / nFreeSpaceY) + 1;
aNewPos.AdjustY( -(mult * nFreeSpaceY) );
}
}