Skip to content

Commit abc0919

Browse files
mhugentnyalldawson
authored andcommittedJan 9, 2017
Fix area calculation of compoundcurve rings if they contain a 2-vertex linestring
(forward port from 30d7423)
1 parent 990c7cd commit abc0919

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎src/core/geometry/qgslinestring.cpp‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,6 @@ QgsPointV2 QgsLineString::centroid() const
849849
void QgsLineString::sumUpArea( double& sum ) const
850850
{
851851
int maxIndex = numPoints() - 1;
852-
if ( maxIndex == 1 )
853-
return; //no area, just a single line
854852

855853
for ( int i = 0; i < maxIndex; ++i )
856854
{

0 commit comments

Comments
 (0)
Please sign in to comment.