Skip to content

Commit 7973c91

Browse files
committed
fixup
1 parent 4e3eff9 commit 7973c91

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/geometry/qgscircularstring.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -766,10 +766,7 @@ bool QgsCircularString::pointAt( int node, QgsPoint &point, QgsVertexId::VertexT
766766

767767
void QgsCircularString::sumUpArea( double &sum ) const
768768
{
769-
if ( numPoints() < 3 )
770-
return;
771-
772-
int maxIndex = numPoints() - 1;
769+
int maxIndex = numPoints() - 2;
773770

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

0 commit comments

Comments
 (0)