layer without name are written with empty name instead of 'unnamed'

merge-requests/1/head
Julien Veyssier 2017-03-21 15:09:16 -03:00
parent d60f29b5c1
commit a27840f029
2 changed files with 4 additions and 3 deletions

View File

@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- numeric/alphabetic sort of layers by name in gpx file
- layer without name are written with empty name
### Fixed
- app is now compliant to occ check-code

View File

@ -650,7 +650,7 @@
gpxText = gpxText + ' <name>' + name + '</name>\n';
}
else{
gpxText = gpxText + ' <name>unnamed</name>\n';
gpxText = gpxText + ' <name></name>\n';
}
if (alt !== undefined) {
gpxText = gpxText + ' <ele>' + alt + '</ele>\n';
@ -675,7 +675,7 @@
gpxText = gpxText + ' <name>' + name + '</name>\n';
}
else{
gpxText = gpxText + ' <name>unnamed</name>\n';
gpxText = gpxText + ' <name></name>\n';
}
if (comment) {
gpxText = gpxText + ' <cmt>' + comment + '</cmt>\n';
@ -706,7 +706,7 @@
gpxText = gpxText + ' <name>' + name + '</name>\n';
}
else{
gpxText = gpxText + ' <name>unnamed</name>\n';
gpxText = gpxText + ' <name></name>\n';
}
if (comment) {
gpxText = gpxText + ' <cmt>' + comment + '</cmt>\n';