subsurface/commands
Berthold Stoeger eb5d4f2a15 desktop: fix multi-dive editing of cylinders
3629a87 changed the handling of cylinders in multi-dives edit.
Not only should the cylinders be the "same", but also at the
same position. The code did not check whether the edited dives
even had that many cylinders, leading to a null-pointer
dereference.

Check whether the cylinder exists before comparing it.

Fixes #3578.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2023-02-10 20:09:34 +01:00
..
CMakeLists.txt
command.cpp Allow editing sensors through equipment tab 2022-03-12 11:24:50 -08:00
command.h Allow editing sensors through equipment tab 2022-03-12 11:24:50 -08:00
command_base.cpp core: better change message in git save 2022-10-17 16:01:00 -07:00
command_base.h
command_device.cpp undo/device: adjust device management infrastructure 2021-08-18 13:22:02 -07:00
command_device.h undo/device: adjust device management infrastructure 2021-08-18 13:22:02 -07:00
command_divelist.cpp profile: don't compile ProfileWidget2 on mobile 2021-12-17 11:54:23 -08:00
command_divelist.h devices: add devices in Command::importTable() 2020-10-24 09:51:37 -07:00
command_divesite.cpp
command_divesite.h mobile: remove GpsLocation 2021-09-13 11:21:34 -07:00
command_edit.cpp desktop: fix multi-dive editing of cylinders 2023-02-10 20:09:34 +01:00
command_edit.h Fix merge problem in EditSensors 2022-03-14 09:34:16 -07:00
command_edit_trip.cpp
command_edit_trip.h
command_event.cpp undo: set dive mode to CCR in undo command, not profile code 2021-01-11 09:31:36 -08:00
command_event.h
command_filter.cpp
command_filter.h filter: add filter preset undo commands 2020-09-29 16:13:03 -07:00
command_pictures.cpp
command_pictures.h undo: make adding of pictures undoable 2020-05-06 13:58:09 -07:00