diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-24 10:57:36 +0100 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-07 00:13:35 +0200 |
commit | c4bf1ce8916c3549e51b455548f87508f3b5e23b (patch) | |
tree | 0b5909cbf63a9ef113af5c41bfacbdcab4f532c2 /commands/command_edit.h | |
parent | 5b7a3165932d9b3fced80fec17de01eb1ad89bf7 (diff) | |
download | subsurface-c4bf1ce8916c3549e51b455548f87508f3b5e23b.tar.gz |
undo: remove only "non-protected" cylinders
The undo-code must take care not to remove used cylinders.
To do so, extend the constructor of EditCylinderBase,
which collects the cylinders and dives to edit, by the
"nonProtectedOnly" boolean argument. If true, only those
cylinders for wich "is_cylinder_prot" returns false
will be added.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command_edit.h')
-rw-r--r-- | commands/command_edit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/command_edit.h b/commands/command_edit.h index 88f359fba..c0b79d073 100644 --- a/commands/command_edit.h +++ b/commands/command_edit.h @@ -390,7 +390,7 @@ private: class EditCylinderBase : public EditDivesBase { protected: - EditCylinderBase(int index, bool currentDiveOnly); + EditCylinderBase(int index, bool currentDiveOnly, bool nonProtectedOnly); ~EditCylinderBase(); cylinder_t cyl; |