Skip to content
Permalink
Browse files

fix for negative wedge buffer angles

  • Loading branch information
raymondnijssen authored and nyalldawson committed Aug 8, 2018
1 parent 57a2bc7 commit 9bda6b8f4a54000edf605e1b688b0ebac70bfdff
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 9bda6b8

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