Skip to content
Permalink
Browse files

Fix potential crash in QgsGeometry::smooth

  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 20cc7a7 commit 60f81bd1baf825c221ce536163d7674b8284a804
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeometry.cpp
@@ -2669,7 +2669,7 @@ bool QgsGeometry::compare( const QgsMultiPolygon &p1, const QgsMultiPolygon &p2,

QgsGeometry QgsGeometry::smooth( const unsigned int iterations, const double offset, double minimumDistance, double maxAngle ) const
{
if ( d->geometry->isEmpty() )
if ( !d->geometry || d->geometry->isEmpty() )
return QgsGeometry();

QgsGeometry geom = *this;

0 comments on commit 60f81bd

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