Skip to content

Commit

Permalink
Add test for QgsGeometryCollection::vertexAt with negative part index
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Apr 18, 2023
1 parent 3f73a2b commit 091c1a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/core/geometry/testqgsgeometrycollection.cpp
Expand Up @@ -59,6 +59,8 @@ void TestQgsGeometryCollection::geometryCollection()
QCOMPARE( c1.vertexCount( 0, 0 ), 0 );
QCOMPARE( c1.vertexCount( 0, 1 ), 0 );
QCOMPARE( c1.vertexCount( 1, 0 ), 0 );
// no crash!
QCOMPARE( c1.vertexAt( QgsVertexId( -1, -1, -1 ) ), QgsPoint() );

//addGeometry

Expand Down

0 comments on commit 091c1a7

Please sign in to comment.