Skip to content

Commit

Permalink
Diff and Terrain in geocaches are integers internally.
Browse files Browse the repository at this point in the history
  • Loading branch information
GPSBabelDeveloper committed Dec 3, 2018
1 parent ce7f639 commit 403b438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ static 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().toDouble() * 10;
wpt->gc_data->diff = reader.readElementText().toUInt() * 10;
} else if (current_tag == "/loc/waypoint/terrain") {
wpt->gc_data->terr = reader.readElementText().toDouble() * 10;
wpt->gc_data->terr = reader.readElementText().toUInt() * 10;
} else if (current_tag == "/loc/waypoint/container") {
wpt->gc_data->container = wpt_container(reader.readElementText());
}
Expand Down

1 comment on commit 403b438

@rickrich
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have this WRONG!

toDouble is right!!!

Please sign in to comment.