mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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);
|
||||
} 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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue