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 github-actions[bot] committed Apr 17, 2023
1 parent a8da0de commit 9123a0e
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 9123a0e

Please sign in to comment.