summaryrefslogtreecommitdiffstats
path: root/subsurface-icon.h
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-12-24 18:08:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-24 08:20:06 -0800
commitb07af31ea566eaa4237391ff3c1f7aae86f411a8 (patch)
treea4d31af257482bd91642171be3d82d9c0f4f564e /subsurface-icon.h
parent18f0489188422c3e835e5b6169fa8b65bfe27fdd (diff)
downloadsubsurface-b07af31ea566eaa4237391ff3c1f7aae86f411a8.tar.gz
Try to detect whether DivingLog's samples are m/f
Seems that we can detect the unit of samples from DivingLog import when comparing the maximum dive depth to the maximum recorded sample depth. If sample is bigger, it is recorded in imperial. Of course this relies on the assumption that the max depth of dive is recorded in metric unit, but that seems to be the case, at least in the sample received. It really does not make any sense to have both units in use for one dive without any info on the unit used. But since that is the case, let's try to cope with it. Fixes #316 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-icon.h')
0 files changed, 0 insertions, 0 deletions