X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=divelist.c;h=d311aee17a0de144dadbadc6eddfba90b261f16c;hb=6131dbc74c700ce1983740034ffb5e6d9b4bc54f;hp=de2d35df3b9d5a9a1ac103f51f3955943665e239;hpb=9b1ea2ae6d6998aaaa842dabf1182c279f7d19f5;p=ext%2Fsubsurface.git diff --git a/divelist.c b/divelist.c index de2d35d..d311aee 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;