mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-24 04:50:29 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user