Comment 16 for bug 1821909

Revision history for this message
Michael Kavanagh (michaelkavanagh) wrote :

The problem seems to be related to the two vertices (bottom right in the example provided) at the same location.

It doesn't crash if the duplicate bottom right vertex is removed first before trying to remove the other vertices.

Removing either the top or bottom left vertices first causes validatePolygon( *polygon ) to return false at point_editor.cpp:1149.

It can be reproduced by:
1) creating a new footprint
2) drawing a polygon (>4 vertices)
3) moving a vertex on top a neighbouring vertex (a "Self-intersecting polygons are not allowed message" pops up but doesn't prevent you from doing it)
4) right-click and remove any other vertex.