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 17, 2023
1 parent 663434f commit 7b0054f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -155,6 +155,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 7b0054f

Please sign in to comment.