diff options
Diffstat (limited to 'svx/source/customshapes')
4 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index 6e463f09dcaf..8ef5a6ebec4f 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -942,7 +942,7 @@ Point EnhancedCustomShape2d::GetPoint( const css::drawing::EnhancedCustomShapePa const bool bScale, const bool bReplaceGeoSize ) const { basegfx::B2DPoint aPoint(GetPointAsB2DPoint(rPair, bScale, bReplaceGeoSize)); - return Point(static_cast<long>(aPoint.getX()), static_cast<long>(aPoint.getY())); + return Point(static_cast<tools::Long>(aPoint.getX()), static_cast<tools::Long>(aPoint.getY())); } void EnhancedCustomShape2d::GetParameter( double& rRetValue, const EnhancedCustomShapeParameter& rParameter, diff --git a/svx/source/customshapes/EnhancedCustomShape3d.cxx b/svx/source/customshapes/EnhancedCustomShape3d.cxx index c802d0057464..893984f3d90e 100644 --- a/svx/source/customshapes/EnhancedCustomShape3d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape3d.cxx @@ -272,12 +272,12 @@ SdrObject* EnhancedCustomShape3d::Create3DObject( bool bIsMirroredX(rSdrObjCustomShape.IsMirroredX()); bool bIsMirroredY(rSdrObjCustomShape.IsMirroredY()); tools::Rectangle aSnapRect(rSdrObjCustomShape.GetLogicRect()); - long nObjectRotation(rSdrObjCustomShape.GetRotateAngle()); + tools::Long nObjectRotation(rSdrObjCustomShape.GetRotateAngle()); if ( nObjectRotation ) { double a = (36000 - nObjectRotation) * F_PI18000; - long dx = aSnapRect.Right() - aSnapRect.Left(); - long dy = aSnapRect.Bottom()- aSnapRect.Top(); + tools::Long dx = aSnapRect.Right() - aSnapRect.Left(); + tools::Long dy = aSnapRect.Bottom()- aSnapRect.Top(); Point aP( aSnapRect.TopLeft() ); RotatePoint( aP, rSdrObjCustomShape.GetSnapRect().Center(), sin( a ), cos( a ) ); aSnapRect.SetLeft( aP.X() ); diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx index 1f61c6097a0e..15b7cd41aa44 100644 --- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx @@ -316,7 +316,7 @@ Reference< drawing::XShape > SAL_CALL EnhancedCustomShapeEngine::render() if ( rGeoStat.nShearAngle ) { - long nShearAngle = rGeoStat.nShearAngle; + tools::Long nShearAngle = rGeoStat.nShearAngle; double nTan = rGeoStat.nTan; if (bFlipV != bFlipH) { @@ -417,7 +417,7 @@ drawing::PolyPolygonBezierCoords SAL_CALL EnhancedCustomShapeEngine::getLineGeom if ( rGeoStat.nShearAngle ) { - long nShearAngle = rGeoStat.nShearAngle; + tools::Long nShearAngle = rGeoStat.nShearAngle; double nTan = rGeoStat.nTan; if (bFlipV != bFlipH) { diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx index f25fee8d3a4d..e6e1f428bd7c 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx @@ -595,7 +595,7 @@ static void InsertMissingOutlinePoints( const std::vector< double >& rDistances, if (nSize == 0) return; - long nTextWidth = rTextAreaBoundRect.GetWidth(); + tools::Long nTextWidth = rTextAreaBoundRect.GetWidth(); if (nTextWidth == 0) throw o3tl::divide_by_zero(); |