Skip to content

Commit

Permalink
More efficient QgsGeometry::asGeometryCollection() for single part ge…
Browse files Browse the repository at this point in the history
…ometries
  • Loading branch information
nyalldawson committed May 25, 2018
1 parent bcaad3a commit 095a324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.cpp
Expand Up @@ -2196,7 +2196,7 @@ QVector<QgsGeometry> QgsGeometry::asGeometryCollection() const
}
else //a singlepart geometry
{
geometryList.append( QgsGeometry( d->geometry->clone() ) );
geometryList.append( *this );
}

return geometryList;
Expand Down

0 comments on commit 095a324

Please sign in to comment.