diff --git a/js/gpxedit.js b/js/gpxedit.js index 79bbe31..d14ec61 100644 --- a/js/gpxedit.js +++ b/js/gpxedit.js @@ -604,7 +604,7 @@ function generateGpx(){ var alt = layer._latlngs[i].alt; var time = layer._latlngs[i].time; gpxText = gpxText + ' \n'; - if (time !== undefined){ + if (time){ gpxText = gpxText + ' \n'; } if (alt !== undefined){ @@ -687,7 +687,9 @@ function drawLine(latlngs, name, desc, cmt, gpxtype, times){ }); if (times.length === p._latlngs.length){ for (var i=0; i