Skip to content

Commit 095a324

Browse files
committedMay 25, 2018
More efficient QgsGeometry::asGeometryCollection() for single part geometries
1 parent bcaad3a commit 095a324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/geometry/qgsgeometry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,7 @@ QVector<QgsGeometry> QgsGeometry::asGeometryCollection() const
21962196
}
21972197
else //a singlepart geometry
21982198
{
2199-
geometryList.append( QgsGeometry( d->geometry->clone() ) );
2199+
geometryList.append( *this );
22002200
}
22012201

22022202
return geometryList;

0 commit comments

Comments
 (0)
Please sign in to comment.