mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
5b7a316593
commit
c4bf1ce891
2 changed files with 10 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue