Skip to content

Commit

Permalink
fix for negative wedge buffer angles
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondnijssen authored and nyalldawson committed Aug 8, 2018
1 parent 57a2bc7 commit 9bda6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.cpp
Expand Up @@ -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 >();

Expand Down

0 comments on commit 9bda6b8

Please sign in to comment.