mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix issue where close nodes validation may not detect issues in some cases
This commit is contained in:
@@ -32,7 +32,7 @@ export function validationCloseNodes() {
|
||||
if (!parentWay.tags.highway || !osmRoutableHighwayTagValues[parentWay.tags.highway]) continue;
|
||||
|
||||
var lastIndex = parentWay.nodes.length - 1;
|
||||
for (var j in parentWay.nodes) {
|
||||
for (var j = 0; j < parentWay.nodes.length; j++) {
|
||||
if (j !== 0) {
|
||||
if (parentWay.nodes[j-1] === node.id) {
|
||||
checkForCloseness(node, context.entity(parentWay.nodes[j]), parentWay);
|
||||
|
||||
Reference in New Issue
Block a user