summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/generic/poly.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 8be16bbd5ebd..6a9aff2be250 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -272,10 +272,10 @@ ImplPolygon::ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, c
sal_uInt16 nEnd;
// #i73608# If startPoint is equal to endPoint, then draw full circle instead of nothing (as Metafiles spec)
if( fDiff <= 0. )
- fDiff += F_2PI;
+ fDiff += 2 * M_PI;
// Proportionally shrink number of points( fDiff / (2PI) );
- nPoints = std::max( static_cast<sal_uInt16>( ( fDiff / F_2PI ) * nPoints ), sal_uInt16(16) );
+ nPoints = std::max( static_cast<sal_uInt16>( ( fDiff / (2 * M_PI) ) * nPoints ), sal_uInt16(16) );
fStep = fDiff / ( nPoints - 1 );
if( PolyStyle::Pie == eStyle )