]> git.tdb.fi Git - ext/subsurface.git/blobdiff - divelist.c
Round the maximum depth on dive list
[ext/subsurface.git] / divelist.c
index de2d35df3b9d5a9a1ac103f51f3955943665e239..d311aee17a0de144dadbadc6eddfba90b261f16c 100644 (file)
@@ -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;