diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-06-07 22:02:00 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-07 22:06:46 -0700 |
commit | 7218fa3568e647a0ada318c928aa31340e2832c0 (patch) | |
tree | de4287b9e14a702c3f0ee71e292442e22b0f968c /qt-ui | |
parent | 0031b64df74bd80cbb0205f476531111bcc87d58 (diff) | |
download | subsurface-7218fa3568e647a0ada318c928aa31340e2832c0.tar.gz |
Fix compile: mixup of GeoDataCoordinates and GeoDataPoint
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/globe.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 778118913..24806d520 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -130,10 +130,10 @@ void GlobeGPS::reload() place->setCoordinate(dive->longitude.udeg / 1000000.0,dive->latitude.udeg / 1000000.0 , 0, GeoDataCoordinates::Degree); // don't add dive locations twice, unless they are at least 50m apart if (locationMap[QString(dive->location)]) { - GeoDataPoint existingLocation = locationMap[QString(dive->location)]->coordinate(); + GeoDataCoordinates existingLocation = locationMap[QString(dive->location)]->coordinate(); GeoDataLineString segment = GeoDataLineString(); segment.append(existingLocation); - GeoDataPoint newLocation = place->coordinate(); + GeoDataCoordinates newLocation = place->coordinate(); segment.append(newLocation); double dist = segment.length(6371); // the dist is scaled to the radius given - so with 6371km as radius |