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 <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gehad elrobey 2014-08-10 07:10:41 +03:00 committed by Dirk Hohndel
parent 10e70336c6
commit 108fc892ca

View file

@ -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();
}