mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 01:47:49 +02:00
prevent degenerate ways caused by deleting a corner of a triangle (#10003)
This commit is contained in:
+1
-1
@@ -242,7 +242,7 @@ Object.assign(osmWay.prototype, {
|
||||
|
||||
|
||||
isDegenerate: function() {
|
||||
return (new Set(this.nodes).size < (this.isArea() ? 3 : 2));
|
||||
return (new Set(this.nodes).size < (this.isClosed() ? 3 : 2));
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user