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 416c004 commit bf3fbecCopy full SHA for bf3fbec
src/core/geometry/qgscurvepolygonv2.cpp
@@ -702,7 +702,7 @@ bool QgsCurvePolygonV2::deleteVertex( const QgsVertexId& vId )
702
703
QgsCurveV2* ring = vId.ring == 0 ? mExteriorRing : mInteriorRings.at( vId.ring - 1 );
704
int n = ring->numPoints();
705
- if ( n <= 2 )
+ if ( n <= 4 )
706
{
707
//no points will be left in ring, so remove whole ring
708
if ( vId.ring == 0 )
src/core/geometry/qgslinestringv2.cpp
@@ -644,6 +644,12 @@ bool QgsLineStringV2::deleteVertex( const QgsVertexId& position )
644
645
mM.remove( position.vertex );
646
}
647
+
648
+ if( numPoints() == 1 )
649
+ {
650
+ clear();
651
+ }
652
653
mBoundingBox = QgsRectangle(); //set bounding box invalid
654
return true;
655
0 commit comments