mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use unused cylinders in planner if they are displayed
This makes prefs.display_unused_tanks also relevant for the planner. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5dfec3b799
commit
ea143e9668
2 changed files with 4 additions and 3 deletions
|
@ -368,7 +368,8 @@ void CylindersModel::copyFromDive(dive *d)
|
|||
return;
|
||||
rows = 0;
|
||||
for (int i = 0; i < MAX_CYLINDERS; i++) {
|
||||
if (!cylinder_none(&d->cylinder[i]) && is_cylinder_used(d, i)) {
|
||||
if (!cylinder_none(&d->cylinder[i]) &&
|
||||
(is_cylinder_used(d, i) || prefs.display_unused_tanks)) {
|
||||
rows = i + 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue