Skip to content

Commit 3809da6

Browse files
committed
better fix for 61693b8
1 parent 61693b8 commit 3809da6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/core/geometry/qgsabstractgeometryv2.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ email : marco.hugentobler at sourcepole dot com
2121
#include "qgswkbtypes.h"
2222
#include "qgswkbptr.h"
2323

24-
#ifdef _MSC_VER
25-
// for M_PI_2
26-
#define _USE_MATH_DEFINES
27-
#include <math.h>
28-
#endif
29-
3024
#include <QString>
3125

3226
class QgsMapToPixel;
@@ -305,7 +299,7 @@ class CORE_EXPORT QgsAbstractGeometryV2
305299
* @param tolerance segmentation tolerance
306300
* @param toleranceType maximum segmentation angle or maximum difference between approximation and curve
307301
*/
308-
virtual QgsAbstractGeometryV2* segmentize( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const;
302+
virtual QgsAbstractGeometryV2* segmentize( double tolerance = M_PI / 180., SegmentationToleranceType toleranceType = MaximumAngle ) const;
309303

310304
/** Returns the geometry converted to the more generic curve type.
311305
E.g. QgsLineStringV2 -> QgsCompoundCurveV2, QgsPolygonV2 -> QgsCurvePolygonV2,

0 commit comments

Comments
 (0)