Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c7b3f6f

Browse files
agiudiceandreagithub-actions[bot]
authored andcommittedApr 17, 2023
Fix QgsGeometryUtils::verticesAtDistance for empty geometry
return false
1 parent fd9db82 commit c7b3f6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/core/geometry/qgsgeometryutils.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ bool QgsGeometryUtils::verticesAtDistance( const QgsAbstractGeometry &geometry,
156156
previousVertex = QgsVertexId();
157157
nextVertex = QgsVertexId();
158158

159+
if ( geometry.isEmpty() )
160+
{
161+
return false;
162+
}
163+
159164
QgsPoint point;
160165
QgsPoint previousPoint;
161166

0 commit comments

Comments
 (0)
Please sign in to comment.