mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
When editing cylinders, copy all relevant data
Maybe it would be better to just copy the whole structure and then clear the things we don't want to copy? This seems fragile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7196176fa0
commit
44a154f7da
1 changed files with 2 additions and 0 deletions
|
@ -764,6 +764,8 @@ void MainTab::acceptChanges()
|
|||
mydive->cylinder[i].type.size = displayed_dive.cylinder[i].type.size;
|
||||
mydive->cylinder[i].type.workingpressure = displayed_dive.cylinder[i].type.workingpressure;
|
||||
mydive->cylinder[i].gasmix = displayed_dive.cylinder[i].gasmix;
|
||||
mydive->cylinder[i].cylinder_use = displayed_dive.cylinder[i].cylinder_use;
|
||||
mydive->cylinder[i].depth = displayed_dive.cylinder[i].depth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue