From 63fc7c477018c9031acad3f603f0460ec2fc8fb2 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sat, 11 Jun 2016 01:40:20 -0400 Subject: [PATCH] Fix imperial units test in maxspeed (closes #3156) --- js/id/ui/preset/maxspeed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/ui/preset/maxspeed.js b/js/id/ui/preset/maxspeed.js index a0e1cc9e4..a11ee6855 100644 --- a/js/id/ui/preset/maxspeed.js +++ b/js/id/ui/preset/maxspeed.js @@ -31,7 +31,7 @@ iD.ui.preset.maxspeed = function(field, context) { imperial = _.some(iD.data.imperial.features, function(f) { return _.some(f.geometry.coordinates, function(d) { - return iD.geo.pointInPolygon(loc, d[0]); + return iD.geo.pointInPolygon(loc, d); }); });