diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-06-10 23:21:08 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-11 16:03:38 -0700 |
commit | e7a7bd4de2495d9df668d93016628d722ba4e3b3 (patch) | |
tree | f28fe027a535f79a18bfddc29536d94e8f3f708e /core/windows.c | |
parent | 1ddda0755b070ac916f54345c3ad2f7b4a4b80db (diff) | |
download | subsurface-e7a7bd4de2495d9df668d93016628d722ba4e3b3.tar.gz |
qthelper.cpp: leave lbs rounding to QString().arg() with 'f'
The following call in weight_string():
str = QString("%1").arg(lbs, 0, 'f', lbs >= 40.0 ? 0 : 1);
will make values in lbs larger or equal to 40 to have no fractional
part and be rounded to nearest, while values less than 40 will have one
decimal place.
fixes #412
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/windows.c')
0 files changed, 0 insertions, 0 deletions