From 1adfa4c37ae9394c1c1bbac8020a379c3b33b1bf Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 16 Dec 2016 02:49:51 +0100 Subject: [PATCH] fix, time was set to '' when loading data without time --- js/gpxedit.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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