aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Murillo Bernardes <mfbernardes@gmail.com>2018-05-16 20:20:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-17 07:25:56 -0700
commit97090aeb4750bff28e3e50323dbd23680e17d067 (patch)
tree725c8ff64a509e60194bd9a8e7454bb6ebd640ca /mobile-widgets/qmlmanager.cpp
parent45395fd466a8d71a1600cf182d08d4aa45d3b892 (diff)
downloadsubsurface-97090aeb4750bff28e3e50323dbd23680e17d067.tar.gz
mobile: fix wrong coords when saving new location
This one place it was not being multiplied by 1000000, as expected for degrees_t. Signed-off-by: Murillo Bernardes <mfbernardes@gmail.com>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index a7345363c..fba9efb92 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -725,8 +725,8 @@ static void setupDivesite(struct dive *d, struct dive_site *ds, double lat, doub
ds->longitude.udeg = lrint(lon * 1000000);
} else {
degrees_t latData, lonData;
- latData.udeg = lrint(lat);
- lonData.udeg = lrint(lon);
+ latData.udeg = lrint(lat * 1000000);
+ lonData.udeg = lrint(lon * 1000000);
d->dive_site_uuid = create_dive_site_with_gps(locationtext, latData, lonData, d->when);
}
}