Skip to content
Permalink
Browse files

More efficient QgsGeometry::asGeometryCollection() for single part ge…

…ometries
  • Loading branch information
nyalldawson committed May 25, 2018
1 parent bcaad3a commit 095a3249c3d18d8803f1412b85938bff9811a05c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeometry.cpp
@@ -2196,7 +2196,7 @@ QVector<QgsGeometry> QgsGeometry::asGeometryCollection() const
}
else //a singlepart geometry
{
geometryList.append( QgsGeometry( d->geometry->clone() ) );
geometryList.append( *this );
}

return geometryList;

0 comments on commit 095a324

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