Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix area calculation of compoundcurve rings if they contain a 2-verte…
…x linestring

(forward port from 30d7423)
  • Loading branch information
mhugent authored and nyalldawson committed Jan 9, 2017
1 parent 990c7cd commit abc0919
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/geometry/qgslinestring.cpp
Expand Up @@ -849,8 +849,6 @@ QgsPointV2 QgsLineString::centroid() const
void QgsLineString::sumUpArea( double& sum ) const
{
int maxIndex = numPoints() - 1;
if ( maxIndex == 1 )
return; //no area, just a single line

for ( int i = 0; i < maxIndex; ++i )
{
Expand Down

0 comments on commit abc0919

Please sign in to comment.