summaryrefslogtreecommitdiffstats
path: root/subsurface_enabled_translations
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-08-07 13:07:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-10 09:13:26 -0700
commita072c635bc8a952a7d1386783ccc91d6381e8114 (patch)
treea2c26d6006f728258fa2854f5d42b4b55b99539a /subsurface_enabled_translations
parent9f290dcdb0395711a38540f79d04e7748cbdde3e (diff)
downloadsubsurface-a072c635bc8a952a7d1386783ccc91d6381e8114.tar.gz
fix weights rounding
Simplify and fix prestation of weights. Due to the attempt to round only the grams part (by just adding 50 to it, and truncating afterwards) a weird effect was introduced. For example, a value 0.98 was presented as 0.10. Just replay the old logic, and see what happens. Rewrote the logic to a simpler and better one. fixes: #532 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'subsurface_enabled_translations')
0 files changed, 0 insertions, 0 deletions