Skip to content

Commit

Permalink
better fix for 61693b8
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 23, 2016
1 parent 61693b8 commit 3809da6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/core/geometry/qgsabstractgeometryv2.h
Expand Up @@ -21,12 +21,6 @@ email : marco.hugentobler at sourcepole dot com
#include "qgswkbtypes.h"
#include "qgswkbptr.h"

#ifdef _MSC_VER
// for M_PI_2
#define _USE_MATH_DEFINES
#include <math.h>
#endif

#include <QString>

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

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

0 comments on commit 3809da6

Please sign in to comment.