Skip to content

Commit 60f81bd

Browse files
committed
Fix potential crash in QgsGeometry::smooth
1 parent 20cc7a7 commit 60f81bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/geometry/qgsgeometry.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ bool QgsGeometry::compare( const QgsMultiPolygon &p1, const QgsMultiPolygon &p2,
26692669

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

26752675
QgsGeometry geom = *this;

0 commit comments

Comments
 (0)