diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-18 23:42:32 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-19 10:00:02 +0100 |
commit | 1cc6fca4927b9684b1f5acedee7b60c0c7518e25 (patch) | |
tree | d3ec824cbf0bd00b7a89f004509fbcea5dccf70c /tools | |
parent | 37429f2690a96491ad0e4fa2a04f2fa88a66da87 (diff) |
Drop F_2PI
Change-Id: Ie98606607b2ce262e4eed76bb8cd86fbfe846f76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125506
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/poly.cxx | 4 |
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 ) |