Skip to content
Permalink
Browse files

Fix segfault

  • Loading branch information
m-kuhn committed Aug 14, 2017
1 parent 0df873c commit f9ba9052b5569c9e07d5d1b16614e8dd8a5db085
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeometry.cpp
@@ -705,7 +705,7 @@ QgsGeometry::OperationResult QgsGeometry::addPart( const QgsGeometry &newPart )
{
return QgsGeometry::InvalidBaseGeometry;
}
if ( !newPart.d || !newPart.d->geometry )
if ( !newPart || !newPart.d->geometry )
{
return QgsGeometry::AddPartNotMultiGeometry;
}

0 comments on commit f9ba905

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