diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-06 16:50:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-07 17:50:51 +0300 |
commit | df16866292ac16430e840ccc0013a5914303cd0f (patch) | |
tree | 5fb145cbf2b8da6d37bb5b9e7b4d669c7fd90df2 /core/divelogexportlogic.cpp | |
parent | b61f6f66d8859e62023e3818879b90de529e9a72 (diff) | |
download | subsurface-df16866292ac16430e840ccc0013a5914303cd0f.tar.gz |
Statistics: only consider selected dives in HTML export statistics
If only selected dives were exported into HTML, the statistics would
nevertheless cover all dives. A counter-intuitive behavior. Fix by
adding a selected_only flag to calculate_stats_summary().
Reported-by: Jan Mulder <jlmulder@xs4all.nl>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelogexportlogic.cpp')
-rw-r--r-- | core/divelogexportlogic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelogexportlogic.cpp b/core/divelogexportlogic.cpp index 27a42fbf7..1a0779422 100644 --- a/core/divelogexportlogic.cpp +++ b/core/divelogexportlogic.cpp @@ -79,7 +79,7 @@ static void exportHTMLstatistics(const QString filename, struct htmlExportSettin stats_t total_stats; - calculate_stats_summary(&stats); + calculate_stats_summary(&stats, hes.selectedOnly); total_stats.selection_size = 0; total_stats.total_time.seconds = 0; |