From: Linus Torvalds Date: Thu, 20 Oct 2011 10:55:55 +0000 (+0300) Subject: Fix up multi-cylinder code as per Dirk X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=45d4d5ecdec6d02b2564d512cd95118f474855e8;p=ext%2Fsubsurface.git Fix up multi-cylinder code as per Dirk Too much cut-and-paste, as Dirk points out. With multiple cylinders, we're not necessarily going to start at time zero. Signed-off-by: Linus Torvalds --- diff --git a/profile.c b/profile.c index 1069253..e5c7238 100644 --- a/profile.c +++ b/profile.c @@ -508,7 +508,7 @@ static void plot_cylinder_pressure(struct graphics_context *gc, struct plot_info if (entry->same_cylinder) line_to(gc, entry->sec, mbar); else - move_to(gc, 0, pi->maxpressure); + move_to(gc, entry->sec, mbar); } /* if we have valid samples, we don't want to draw a line to the minpressure * but just end wherever the dive ended (think valve shutdowns during dive)