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>
This commit is contained in:
Murillo Bernardes 2018-05-16 20:20:21 +02:00 committed by Dirk Hohndel
parent 45395fd466
commit 97090aeb47

View file

@ -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);
}
}