Skip to content

Commit 70f9d55

Browse files
raymondnijssennyalldawson
authored andcommitted
fix for negative wedge buffer angles
(cherry-picked from 9bda6b8)
1 parent 86d58db commit 70f9d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/geometry/qgsgeometry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ QgsGeometry QgsGeometry::collectGeometry( const QVector< QgsGeometry > &geometri
260260

261261
QgsGeometry QgsGeometry::createWedgeBuffer( const QgsPoint &center, const double azimuth, const double angularWidth, const double outerRadius, const double innerRadius )
262262
{
263-
if ( angularWidth >= 360.0 )
263+
if ( abs( angularWidth ) >= 360.0 )
264264
{
265265
std::unique_ptr< QgsCompoundCurve > outerCc = qgis::make_unique< QgsCompoundCurve >();
266266

0 commit comments

Comments
 (0)