mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 15:34:49 +02:00
Fix close() for single node ways
This commit is contained in:
+1
-1
@@ -193,8 +193,8 @@ _.extend(osmWay.prototype, {
|
||||
if (this.isClosed() || !this.nodes.length) return this;
|
||||
|
||||
var nodes = this.nodes.slice();
|
||||
nodes.push(nodes[0]);
|
||||
nodes = nodes.filter(noRepeatNodes);
|
||||
nodes.push(nodes[0]);
|
||||
return this.update({ nodes: nodes });
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user