From 97090aeb4750bff28e3e50323dbd23680e17d067 Mon Sep 17 00:00:00 2001 From: Murillo Bernardes Date: Wed, 16 May 2018 20:20:21 +0200 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets/qmlmanager.cpp') 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); } } -- cgit v1.2.3-70-g09d2