summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-24 07:05:32 +1200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-24 07:07:02 +1200
commitc3614424f9117c053c783fba5f6499743ec125f9 (patch)
treea598bd77a071d74e3c9570adbe4e39f544f996c9 /profile.h
parent6aee901f6fb329b3c8b3945fc394842a921ca2c7 (diff)
downloadsubsurface-c3614424f9117c053c783fba5f6499743ec125f9.tar.gz
Correcly look at all relevant dive computer structures
When calculating maxima for a dive, we need to take data from all existing dive computer structures plus potentially also a fake dive computer structure that is just passed in in order to create a meaningful profile. Commit 86c961614bfa ("Actually walk all dive computers, don't just claim to do so") missed that second case and no longer took the fake_dc into account, breaking the display of dives that don't have samples. Reported-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.h b/profile.h
index 726d10573..36b8aa767 100644
--- a/profile.h
+++ b/profile.h
@@ -68,7 +68,7 @@ struct ev_select {
bool plot_ev;
};
-struct plot_info calculate_max_limits_new(struct dive *dive);
+struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer *given_dc);
void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int bufsize, int sum);
struct plot_data *populate_plot_entries(struct dive *dive, struct divecomputer *dc, struct plot_info *pi);
struct plot_info *analyze_plot_info(struct plot_info *pi);