We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 17b51ab commit e433639Copy full SHA for e433639
src/core/geometry/qgscurvepolygon.cpp
@@ -359,7 +359,7 @@ double QgsCurvePolygon::area() const
359
360
double totalArea = 0.0;
361
362
- if ( mExteriorRing->isClosed() )
+ if ( mExteriorRing->isRing() )
363
{
364
double area = 0.0;
365
mExteriorRing->sumUpArea( area );
@@ -370,7 +370,7 @@ double QgsCurvePolygon::area() const
370
for ( ; ringIt != mInteriorRings.constEnd(); ++ringIt )
371
372
373
- if (( *ringIt )->isClosed() )
+ if (( *ringIt )->isRing() )
374
375
( *ringIt )->sumUpArea( area );
376
totalArea -= qAbs( area );
0 commit comments