From 108fc892ca101929b101da08e02a6a587f7ca080 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Sun, 10 Aug 2014 07:10:41 +0300 Subject: [PATCH] HTML: Don't export total statistics value if not chosen Don't export total row in yearly statistics unless exporting the statistics is checked Signed-off-by: Gehad elrobey Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/divelogexportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp index f3f32949f..9ea203055 100644 --- a/qt-ui/divelogexportdialog.cpp +++ b/qt-ui/divelogexportdialog.cpp @@ -182,8 +182,8 @@ void DiveLogExportDialog::exportHTMLstatistics(const QString &filename) total_stats.total_time.seconds += stats_yearly[i].total_time.seconds; i++; } + exportHTMLstatisticsTotal(out, &total_stats); } - exportHTMLstatisticsTotal(out, &total_stats); out << "]"; file.close(); }