diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-02 21:36:01 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-02 22:40:50 -0800 |
commit | 4cce5df7e22575d5e37f99b15dbf283e2da53ea9 (patch) | |
tree | 9906ea865052a8b40a9432ac008475e0fe483418 /helpers.h | |
parent | c49d3885f51a9f2ae3fec9252b75fe4b5d7ee503 (diff) | |
download | subsurface-4cce5df7e22575d5e37f99b15dbf283e2da53ea9.tar.gz |
Fix imperial cylinder sizes in equipment tab
The imperial cylinder sizes are not just in cubic feet: they are in
cubic feet of gas at STP. So the imperial/metric difference is not
just about converting blindly from liters to cubic feet, you also have
to take the working pressure of the cylinder into account.
This was broken by commit f9b7c5dfe9d0 ("Make units in cells
consistant in CylindersModel"), because those poor sheltered Swedish
people have never had to work with the wondrous imperial cylinder
sizing, and think that units should make _sense_. Hah.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'helpers.h')
-rw-r--r-- | helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ QString get_weight_unit(); QString get_cylinder_used_gas_string(cylinder_t *cyl, bool showunit = false); QString get_temperature_string(temperature_t temp, bool showunit = false); QString get_temp_unit(); -QString get_volume_string(volume_t volume, bool showunit = false); +QString get_volume_string(volume_t volume, bool showunit = false, unsigned int mbar = 0); QString get_volume_unit(); QString get_pressure_string(pressure_t pressure, bool showunit = false); QString get_pressure_unit(); |