Public bug reported:
See http://geo.rkkda.com/forum/read.php?8,1069 for details.
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 @@
waypt_add_url(wpt,
reader.readElementText(), a.value("text").toString());
} else if (current_tag == "/loc/waypoint/difficulty") {
- wpt->gc_data->diff = reader.readElementText().toInt() * 10;
+ wpt->gc_data->diff = reader.readElementText().toDouble() * 10;
} else if (current_tag == "/loc/waypoint/terrain") {
- wpt->gc_data->terr = reader.readElementText().toInt() * 10;
+ wpt->gc_data->terr = reader.readElementText().toDouble() * 10;
} else if (current_tag == "/loc/waypoint/container") {
wpt->gc_data->container = wpt_container(reader.readElementText());
}
"Thanx for the fix, Rick. It's going into
https://github.com/gpsbabel/gpsbabel/pull/93 " - Robert Lipe
Unfortunately, gpsbabel is still on 1.5.4, even after I reported this in
October 14, 2017.
Fedora has fixed this:
https://bugzilla.redhat.com/show_bug.cgi?id=1561337
** Affects: gpsbabel (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1761362
Title:
gpsbabel versions 1.5.0 through 1.5.4: geo.cc only handles integer
terrain or difficulty
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gpsbabel/+bug/1761362/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs