diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-12-23 22:02:10 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2020-03-06 10:00:13 +0100 |
commit | 62adc24d150b0566b9cc9ab449de4ed30ac2ab62 (patch) | |
tree | 293e64c0295368110bc5f858be9d75bd2a062962 /subsurface_enabled_translations | |
parent | 763dbf256a7e2ee0b9a15829135f6862cd8039f5 (diff) | |
download | subsurface-62adc24d150b0566b9cc9ab449de4ed30ac2ab62.tar.gz |
Core: don't return invalid cylinders from explicit_first_cylinder()
For reasons which I don't yet understand, when plotting a dive
whose first cylinder is not cylinder 0 and then plotting a dive
with only one cylinder, it can happen that for the latter
explicit_first_cylinder() returns an erroneous value.
This is due to the way in which we copy the dive to be plotted
to displayed_dive.
For now, make sure that no invalid cylinder is returned to avoid
crashes. This will have to be changed anyway, since this is very
fundamentally not thread-safe and inefficient.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurface_enabled_translations')
0 files changed, 0 insertions, 0 deletions