summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index 7d3a4d5ee..1e6d523f3 100644
--- a/profile.c
+++ b/profile.c
@@ -11,6 +11,7 @@
#include "dive.h"
#include "display.h"
+#include "display-gtk.h"
#include "divelist.h"
#include "color.h"
@@ -43,7 +44,7 @@ struct plot_info {
/* Depth info */
int depth;
int smoothed;
- double po2;
+ double po2, pn2, phe;
velocity_t velocity;
struct plot_data *min[3];
struct plot_data *max[3];
@@ -1527,7 +1528,7 @@ void plot(struct graphics_context *gc, cairo_rectangle_t *drawing_area, struct d
cairo_close_path(gc->cr);
cairo_stroke(gc->cr);
-// if (graphs_enabled.po2)
+ if (enabled_graphs.po2)
plot_po2_profile(gc, pi);
/* now shift the translation back by half the margin;