| 3 | 3 | `lastIdx != 0` is enough to fix the crash, but if you try to delete a single point several times, checking `org/openstreetmap/josm/plugins/fastdraw/DrawnPolyLine.java:108` will prevent you from adding new points, because the line continues to be a polygon. So I added a transformation back to a unclosed way if the first/last point of the polygon is removed. This also improved the following: before, the first point of the polygon could be deleted, and the auxiliary blue led to the last point of the polygon, which is strange, because the user just tried to delete it. |