We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b0902 commit 30d7423Copy full SHA for 30d7423
src/core/geometry/qgslinestringv2.cpp
@@ -837,9 +837,6 @@ QgsPointV2 QgsLineStringV2::centroid() const
837
void QgsLineStringV2::sumUpArea( double& sum ) const
838
{
839
int maxIndex = numPoints() - 1;
840
- if ( maxIndex == 1 )
841
- return; //no area, just a single line
842
-
843
for ( int i = 0; i < maxIndex; ++i )
844
845
sum += 0.5 * ( mX.at( i ) * mY.at( i + 1 ) - mY.at( i ) * mX.at( i + 1 ) );
0 commit comments