tools/source/generic/poly.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 4ddabd085ab2523a71acdff9fc461e8ea048b5f0 Author: Alex Berea <[email protected]> AuthorDate: Wed Jul 30 16:01:30 2025 +0300 Commit: Bartosz Kosiorek <[email protected]> CommitDate: Thu Aug 7 20:21:14 2025 +0200 tdf#145759 replaces the defined FSQRT2 with c++ built-in M_SQRT2 Change-Id: I6f27e8cfbfdca9648beffe7d083e22195304d487 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188603 Tested-by: Jenkins Reviewed-by: Bartosz Kosiorek <[email protected]> diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 028b2925c2b2..60345425fc53 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -51,7 +51,6 @@ constexpr int EDGE_BOTTOM = 8; constexpr int EDGE_HORZ = EDGE_RIGHT | EDGE_LEFT; constexpr int EDGE_VERT = EDGE_TOP | EDGE_BOTTOM; constexpr double SMALL_DVALUE = 0.0000001; -#define FSQRT2 1.4142135623730950488016887242097 static double ImplGetParameter( const Point& rCenter, const Point& rPt, double fWR, double fHR ) { @@ -1380,7 +1379,7 @@ void Polygon::ImplReduceEdges( tools::Polygon& rPoly, const double& rArea, sal_u if( ( fGradPrev > 0.0 && fGradB < 0.0 && fGradNext > 0.0 ) || ( fGradPrev < 0.0 && fGradB > 0.0 && fGradNext < 0.0 ) ) { - if( ( fLenFact < ( FSQRT2 + SMALL_DVALUE ) ) && + if( ( fLenFact < ( M_SQRT2 + SMALL_DVALUE ) ) && ( ( ( fDist1 + fDist4 ) / ( fDist2 + fDist3 ) ) * 2000.0 ) > fBound ) { bDeletePoint = true;
