Bug report #15087

Crash when deleting the last segment of a compoundcurve

Added by Even Rouault over 6 years ago. Updated over 6 years ago.

Assignee:Even Rouault
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:23029


1. Create a new scratch layer of type polygon
2. Create a geometry made of a straight line, circular string and ending with a 2 point straight line (ie from last point of circular string to beginning of first straight line)
3. Use the node tool to delete the first/last vertex

==> QGIS crashes

Associated revisions

Revision dabc3b16
Added by Even Rouault over 6 years ago

[Geometry] Fix deleteVertex() for CircularString, CompoundCurve and CurvePolygon

In some situations, deleteVertex() could generate an invalid geometry, causing
later crashes due to unexpected structure.

Fix #15087


#1 Updated by Even Rouault over 6 years ago

  • Status changed from Open to Closed

#2 Updated by Even Rouault over 6 years ago

  • Target version set to Version 2.16

Also available in: Atom PDF