Skip to content

Commit b7f4d7f

Browse files
agiudiceandreanyalldawson
authored andcommittedApr 18, 2023
Add test for QgsGeometryCollection::vertexAt with negative part index
1 parent 5feeb4e commit b7f4d7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎tests/src/core/geometry/testqgsgeometrycollection.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ void TestQgsGeometryCollection::geometryCollection()
5858
QCOMPARE( c1.vertexCount( 0, 0 ), 0 );
5959
QCOMPARE( c1.vertexCount( 0, 1 ), 0 );
6060
QCOMPARE( c1.vertexCount( 1, 0 ), 0 );
61+
// no crash!
62+
QCOMPARE( c1.vertexAt( QgsVertexId( -1, -1, -1 ) ), QgsPoint() );
6163

6264
//addGeometry
6365

0 commit comments

Comments
 (0)
Please sign in to comment.