summaryrefslogtreecommitdiffstats
path: root/webservice.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-02-10 11:14:50 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-10 11:55:45 -0800
commit68eca79dfdaec7dfd1c534f1d8daf8421ea94579 (patch)
tree96541b4ca7386f8ab553ddf66ac7ed6484572c51 /webservice.c
parentb652d4e1abd9e391e48d1b5db2cb87dc00e5aa2f (diff)
downloadsubsurface-68eca79dfdaec7dfd1c534f1d8daf8421ea94579.tar.gz
Fix rounding of GPS coordinates
The whole "+ 0.5" to round to integers only works for positive values, and GPS coordinates are signed. So use the proper "round to int" function (rint()), which does this correctly. Also, remove the redundant check against the master gps values: we already checked that if we do have a master dive, the gps values must match the currently edited dive, so comparing against the master is entirely redundant. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'webservice.c')
0 files changed, 0 insertions, 0 deletions