mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
45395fd466
commit
97090aeb47
1 changed files with 2 additions and 2 deletions
|
@ -725,8 +725,8 @@ static void setupDivesite(struct dive *d, struct dive_site *ds, double lat, doub
|
||||||
ds->longitude.udeg = lrint(lon * 1000000);
|
ds->longitude.udeg = lrint(lon * 1000000);
|
||||||
} else {
|
} else {
|
||||||
degrees_t latData, lonData;
|
degrees_t latData, lonData;
|
||||||
latData.udeg = lrint(lat);
|
latData.udeg = lrint(lat * 1000000);
|
||||||
lonData.udeg = lrint(lon);
|
lonData.udeg = lrint(lon * 1000000);
|
||||||
d->dive_site_uuid = create_dive_site_with_gps(locationtext, latData, lonData, d->when);
|
d->dive_site_uuid = create_dive_site_with_gps(locationtext, latData, lonData, d->when);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue