Skip to content
Permalink
Browse files

Fix crash when calculating area for invalid circular string

  • Loading branch information
nyalldawson committed Sep 19, 2017
1 parent 6205ca5 commit 4e3eff947cde78916e24758a5a01891a11c10858
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/geometry/qgscircularstring.cpp
@@ -766,6 +766,9 @@ bool QgsCircularString::pointAt( int node, QgsPoint &point, QgsVertexId::VertexT

void QgsCircularString::sumUpArea( double &sum ) const
{
if ( numPoints() < 3 )
return;

int maxIndex = numPoints() - 1;

for ( int i = 0; i < maxIndex; i += 2 )

0 comments on commit 4e3eff9

Please sign in to comment.
You can’t perform that action at this time.