summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--profile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/profile.c b/profile.c
index faed6c0d3..65f1dab93 100644
--- a/profile.c
+++ b/profile.c
@@ -871,16 +871,16 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi
}
cairo_stroke(cr);
+ gc->leftx = 0; gc->rightx = maxtime;
+
/* Show mean depth */
if (! gc->printer) {
set_source_rgba(gc, MEAN_DEPTH);
move_to(gc, 0, pi->meandepth);
- line_to(gc, 1, pi->meandepth);
+ line_to(gc, pi->entry[pi->nr - 1].sec, pi->meandepth);
cairo_stroke(cr);
}
- gc->leftx = 0; gc->rightx = maxtime;
-
/*
* These are good for debugging text placement etc,
* but not for actual display..