summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/viewoverlaymanager.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/viewoverlaymanager.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/viewoverlaymanager.cxx')
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx
index 0bcd5fcb3ddd..5c309ba4cf67 100644
--- a/sd/source/ui/view/viewoverlaymanager.cxx
+++ b/sd/source/ui/view/viewoverlaymanager.cxx
@@ -367,7 +367,7 @@ BitmapEx ChangePlaceholderTag::createOverlayImage( int nHighlight )
pDev = Application::GetDefaultDevice();
Size aShapeSizePix = pDev->LogicToPixel(rSnapRect.GetSize());
- long nShapeSizePix = std::min(aShapeSizePix.Width(),aShapeSizePix.Height());
+ ::tools::Long nShapeSizePix = std::min(aShapeSizePix.Width(),aShapeSizePix.Height());
bool bLarge = nShapeSizePix > 250;
@@ -403,7 +403,7 @@ void ChangePlaceholderTag::addCustomHandles( SdrHdlList& rHandlerList )
pDev = Application::GetDefaultDevice();
Size aShapeSizePix = pDev->LogicToPixel(rSnapRect.GetSize());
- long nShapeSizePix = std::min(aShapeSizePix.Width(),aShapeSizePix.Height());
+ ::tools::Long nShapeSizePix = std::min(aShapeSizePix.Width(),aShapeSizePix.Height());
if( 50 > nShapeSizePix )
return;
@@ -414,8 +414,8 @@ void ChangePlaceholderTag::addCustomHandles( SdrHdlList& rHandlerList )
const int nColumns = 2;
const int nRows = 2;
- long all_width = nColumns * aButtonSize.Width();
- long all_height = nRows * aButtonSize.Height();
+ ::tools::Long all_width = nColumns * aButtonSize.Width();
+ ::tools::Long all_height = nRows * aButtonSize.Height();
Point aPos( rSnapRect.Center() );
aPos.AdjustX( -(all_width >> 1) );