From 63f2df89b318417b72c76f74da31ad1eecf75d91 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Tue, 16 Apr 2013 22:25:48 -0400 Subject: [PATCH] Fix drawing areas the way that the vertex is being added to is the original one, not the one with the 'end' node, so there is no need to remove it. The new node de-dupe code was making this break area drawing. Fixes #1322 --- js/id/behavior/draw_way.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/behavior/draw_way.js b/js/id/behavior/draw_way.js index fca050b4c..9a747782e 100644 --- a/js/id/behavior/draw_way.js +++ b/js/id/behavior/draw_way.js @@ -98,7 +98,7 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) { return function(graph) { if (isArea) { return graph - .replace(way.removeNode(end.id).addNode(newNode.id, index)) + .replace(way.addNode(newNode.id, index)) .remove(end); } else {