gpsbabel versions 1.5.0 through 1.5.4: geo.cc only handles integer terrain or difficulty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gpsbabel (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
See http://
It used to work in 1.4.4, before the "C" language gpsbabel got refactored into "C++" language gpsbabel.
Basically, the floating point does not work if the decimal part is non-zero. E.G. 3.0 goes to 3.0, but 3.5 goes to 0.0!
$ cd gpsbabel
$ diff -u geo.cc.org geo.cc
--- geo.cc.org 2017-10-14 20:54:31.228998156 -0500
+++ geo.cc 2017-10-14 20:55:48.450485105 -0500
@@ -74,9 +74,9 @@
} else if (current_tag == "/loc/waypoint/
- wpt->gc_data->diff = reader.
+ wpt->gc_data->diff = reader.
} else if (current_tag == "/loc/waypoint/
- wpt->gc_data->terr = reader.
+ wpt->gc_data->terr = reader.
} else if (current_tag == "/loc/waypoint/
}
"Thanx for the fix, Rick. It's going into https:/
Unfortunately, gpsbabel is still on 1.5.4, even after I reported this in October 14, 2017.
Fedora has fixed this:
Changed in gpsbabel (Ubuntu): | |
status: | New → Fix Released |
04/07/2018: Arch Linux has fixed it. https:/ /bugs.archlinux .org/task/ 58115