Skip to content
Permalink
Browse files

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 abc0919cb1d025940c82824a2adf83150d7b5547
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/core/geometry/qgslinestring.cpp
@@ -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 )
{

0 comments on commit abc0919

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