diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-20 21:28:17 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-20 12:59:06 -0700 |
commit | 4aebcdc021391fcbdee089b5e14c11ebab517885 (patch) | |
tree | f10b2cf8eea67e215dae8dee779e68f1b8578034 /desktop-widgets/tab-widgets | |
parent | d81df0dd198221ddec4571874507264ace8e21f3 (diff) | |
download | subsurface-4aebcdc021391fcbdee089b5e14c11ebab517885.tar.gz |
core: return -1 from explicit_first_cylinder() if dive has no cylinders
Arguably, returning 0 for a dive with no cylinders is wrong, since the
0 is a valid cylinder id, however that cylinder doesn't exist. Instead,
return -1. All callers of explicit_first_cylinder() return early anyway
for dives with no cylinders.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets')
0 files changed, 0 insertions, 0 deletions