In statistics, ignore gas use of planned dives

When merged with real dives, those would double count otherwise.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2017-02-02 20:29:44 +01:00 committed by Dirk Hohndel
parent a031dbbbd8
commit 1d8662006c
8 changed files with 16 additions and 14 deletions

View file

@ -277,7 +277,7 @@ void DiveLogExportDialog::export_TeX(const char *filename, const bool selected_o
int i;
for (i = 0; i < MAX_CYLINDERS; i++)
if (is_cylinder_used(dive, i))
if (is_cylinder_used(dive, i, false))
delta_p.mbar += dive->cylinder[i].start.mbar - dive->cylinder[i].end.mbar;
if (need_pagebreak)

View file

@ -594,7 +594,7 @@ void MainTab::updateDiveInfo(bool clear)
gaslist = ""; SACs = ""; volumes = ""; separator = "";
for (int i = 0; i < MAX_CYLINDERS; i++) {
if (!is_cylinder_used(&displayed_dive, i))
if (!is_cylinder_used(&displayed_dive, i, false))
continue;
gaslist.append(separator); volumes.append(separator); SACs.append(separator);
separator = "\n";