diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2011-12-09 18:56:34 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-12-09 09:58:03 -0800 |
commit | 6131dbc74c700ce1983740034ffb5e6d9b4bc54f (patch) | |
tree | 5cad216437de15b7f23a5221c9128473a62eac73 /divelist.c | |
parent | 9b1ea2ae6d6998aaaa842dabf1182c279f7d19f5 (diff) | |
download | subsurface-6131dbc74c700ce1983740034ffb5e6d9b4bc54f.tar.gz |
Round the maximum depth on dive list
Round maximum depth on dive list to get consistent data between the dive
list and dive info.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c index de2d35df3..d311aee17 100644 --- a/divelist.c +++ b/divelist.c @@ -160,8 +160,9 @@ static void depth_data_func(GtkTreeViewColumn *col, frac = depth % 10; if (integer < 20) break; + if (frac >= 5) + integer++; frac = -1; - /* Rounding? */ break; case FEET: integer = mm_to_feet(depth) + 0.5; |