mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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 <torvalds@linux-foundation.org>
This commit is contained in:
parent
04f372f8aa
commit
45d4d5ecde
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ static void plot_cylinder_pressure(struct graphics_context *gc, struct plot_info
|
||||||
if (entry->same_cylinder)
|
if (entry->same_cylinder)
|
||||||
line_to(gc, entry->sec, mbar);
|
line_to(gc, entry->sec, mbar);
|
||||||
else
|
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
|
/* 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)
|
* but just end wherever the dive ended (think valve shutdowns during dive)
|
||||||
|
|
Loading…
Reference in a new issue