| |
@@ -0,0 +1,26 @@
|
| |
+ From 29293f3be4eeb2f88bb9c568b22f476eae6d8a72 Mon Sep 17 00:00:00 2001
|
| |
+ From: Robert Lipe <robertlipe@users.noreply.github.com>
|
| |
+ Date: Sat, 14 Oct 2017 21:59:24 -0500
|
| |
+ Subject: [PATCH] Correctly read diff and terr from geo format.
|
| |
+
|
| |
+ Thank you, Rick Richardson.
|
| |
+ ---
|
| |
+ geo.cc | 4 ++--
|
| |
+ 1 file changed, 2 insertions(+), 2 deletions(-)
|
| |
+
|
| |
+ diff --git a/geo.cc b/geo.cc
|
| |
+ index 5c785f38..e6f4560a 100644
|
| |
+ --- a/geo.cc
|
| |
+ +++ b/geo.cc
|
| |
+ @@ -74,9 +74,9 @@ void GeoReadLoc()
|
| |
+ 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());
|
| |
+ }
|
| |
Use package name rather than a file path for qt5-linguist BR.