Skip to content

Commit

Permalink
Fix QgsGeometryUtils::verticesAtDistance for empty geometry
Browse files Browse the repository at this point in the history
return false
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Apr 18, 2023
1 parent d7c3885 commit 3f73a2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -156,6 +156,11 @@ bool QgsGeometryUtils::verticesAtDistance( const QgsAbstractGeometry &geometry,
previousVertex = QgsVertexId();
nextVertex = QgsVertexId();

if ( geometry.isEmpty() )
{
return false;
}

QgsPoint point;
QgsPoint previousPoint;

Expand Down

0 comments on commit 3f73a2b

Please sign in to comment.