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
This commit is contained in:
Ansis Brammanis
2013-04-16 22:25:48 -04:00
parent 5d88bce00f
commit 63f2df89b3

View File

@@ -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 {