Skip to content
Permalink
Browse files

fix for negative wedge buffer angles

(cherry-picked from 9bda6b8)
  • Loading branch information
raymondnijssen authored and nyalldawson committed Aug 9, 2018
1 parent 86d58db commit 70f9d55d5724ff1bfd71e5d82701e395b4af817b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeometry.cpp
@@ -260,7 +260,7 @@ QgsGeometry QgsGeometry::collectGeometry( const QVector< QgsGeometry > &geometri

QgsGeometry QgsGeometry::createWedgeBuffer( const QgsPoint &center, const double azimuth, const double angularWidth, const double outerRadius, const double innerRadius )
{
if ( angularWidth >= 360.0 )
if ( abs( angularWidth ) >= 360.0 )
{
std::unique_ptr< QgsCompoundCurve > outerCc = qgis::make_unique< QgsCompoundCurve >();

0 comments on commit 70f9d55

Please sign in to comment.
You can’t perform that action at this time.