Github issue 412: lbs values

Lubomir I. Ivanov neolit123 at gmail.com
Sat Jun 10 12:49:39 PDT 2017


Dirk,

stumbled across this report:
https://github.com/Subsurface-divelog/subsurface/issues/412

the UI seems to round values larger than 40lbs up to the next integer
value - e.g. 41lbs -> 42lbs.

https://github.com/Subsurface-divelog/subsurface/blob/master/core/qthelper.cpp#L54

my understanding is that we want to show a fractional part if a value
is under 40lbs, but not if over it?

perhaps both the lrint() calls should be removed and let QString()
with 'f' (0/1) handle that?

demo patch attached.

lubomir
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lbs_lrint.patch
Type: text/x-patch
Size: 483 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20170610/c3ec491a/attachment.bin>


More information about the subsurface mailing list