mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-02 01:13:25 +00:00
Merge pull request #5950 from jguthrie100/fix_area_with_one_node
Fix pressing Escape with only one active node in area
This commit is contained in:
@@ -125,6 +125,8 @@ export function behaviorDrawWay(context, wayID, index, mode, startGraph, baselin
|
||||
|
||||
if (origWay.isClosed()) { // Check if Area
|
||||
if (finishDraw) {
|
||||
if (nodes.length < 3) return false;
|
||||
|
||||
nodes.splice(-2, 1);
|
||||
entity = nodes[nodes.length-2];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user