summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-03 07:31:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-03 07:31:03 -0800
commit08c42813e5d3af8ca702be4333daf46cc14c1d39 (patch)
treee75edfe480b20bd743887e1d868024624a2d5163 /desktop-widgets
parent414d7f2632273420aea8e6cb5291a40ea2111d13 (diff)
downloadsubsurface-08c42813e5d3af8ca702be4333daf46cc14c1d39.tar.gz
Revert "In statistics, ignore gas use of planned dives"
This reverts commit 1d8662006cbb5edae941315e30ede381c23a817b. Mistakenly pushed to master Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/divelogexportdialog.cpp2
-rw-r--r--desktop-widgets/maintab.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp
index 8b7cac192..7b315fcf0 100644
--- a/desktop-widgets/divelogexportdialog.cpp
+++ b/desktop-widgets/divelogexportdialog.cpp
@@ -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, false))
+ if (is_cylinder_used(dive, i))
delta_p.mbar += dive->cylinder[i].start.mbar - dive->cylinder[i].end.mbar;
if (need_pagebreak)
diff --git a/desktop-widgets/maintab.cpp b/desktop-widgets/maintab.cpp
index b8bdf44a7..f6e5b7dc6 100644
--- a/desktop-widgets/maintab.cpp
+++ b/desktop-widgets/maintab.cpp
@@ -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, false))
+ if (!is_cylinder_used(&displayed_dive, i))
continue;
gaslist.append(separator); volumes.append(separator); SACs.append(separator);
separator = "\n";