mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b61f6f66d8
commit
df16866292
5 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue