]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix up multi-cylinder code as per Dirk
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Oct 2011 10:55:55 +0000 (13:55 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Oct 2011 10:55:55 +0000 (13:55 +0300)
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 <torvalds@linux-foundation.org>
profile.c

index 10692535f464d8895d0416b898ee59e292ed4c8b..e5c7238a6b0fc683bccd19372aed88b4e822472c 100644 (file)
--- 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)