[PATCH] Use same weight in dive list and equipment list

Benjamin nystire at gmail.com
Fri Oct 4 05:49:32 UTC 2013


Fix for issue 178 - lead weight shown differs
Subsurface stores all weights in grams. When displaying lbs, the dive list
was truncating the converted value at the decimal place, while the
equipment list was rounding the value up. Both of them now round the value
up to the nearest integer value when showing lbs.

Would it be better to add another function to do this, or is it ok to have
the same code twice? To put it differently,  are there any other places
where this conversion might be needed?

Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131004/420fe197/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-the-same-conversion-grams-lbs-in-dive-and-equipm.patch
Type: application/octet-stream
Size: 1872 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131004/420fe197/attachment.obj>


More information about the subsurface mailing list