Merge branch 'master' into keyboard_shortcuts

This commit is contained in:
Rowan Hogan
2015-06-15 10:12:31 +10:00
+4 -2
View File
@@ -262,8 +262,10 @@ iD.Background = function(context) {
var gpx = q.gpx;
if (gpx) {
d3.text(gpx, function(err, gpxTxt) {
gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt)));
dispatch.change();
if (!err) {
gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt)));
dispatch.change();
}
});
}
};