mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
10fc3bfd47
Fix an issue introduced in #4148. Essentially the refactoring missed the fact that in the imperial system tank size is tracked as the free gas volume, but in the metric system (which is the one used in most of Subsurface's calculations) tank size is tracked as water capacity. So when updating a tank template tracking imperial measurements, the given (metric) volume in l has to be multiplied by the working pressure, and vice versa. This also combines all the logic dealing with `tank_info` data in one place, hopefully making it less likely that this will be broken by inconsistencies in the future. Fixes #4239. Signed-off-by: Michael Keller <github@ike.ch> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
command.cpp | ||
command.h | ||
command_base.cpp | ||
command_base.h | ||
command_device.cpp | ||
command_device.h | ||
command_divelist.cpp | ||
command_divelist.h | ||
command_divesite.cpp | ||
command_divesite.h | ||
command_edit.cpp | ||
command_edit.h | ||
command_edit_trip.cpp | ||
command_edit_trip.h | ||
command_event.cpp | ||
command_event.h | ||
command_filter.cpp | ||
command_filter.h | ||
command_pictures.cpp | ||
command_pictures.h |