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
|
@ -177,7 +177,7 @@ void YearlyStatisticsModel::update_yearly_stats()
|
|||
int i, month = 0;
|
||||
unsigned int j, combined_months;
|
||||
stats_summary_auto_free stats;
|
||||
calculate_stats_summary(&stats);
|
||||
calculate_stats_summary(&stats, false);
|
||||
|
||||
for (i = 0; stats.stats_yearly != NULL && stats.stats_yearly[i].period; ++i) {
|
||||
YearStatisticsItem *item = new YearStatisticsItem(stats.stats_yearly[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue