X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=profile.c;h=f0ae0c9311c5eba3c3bc24130c01d8b02c36eb59;hb=97a1dd68306de17aa73be092d2bcf174e8158f62;hp=d2ebf4a097b94bb6964c2a453bb74b12949aec6c;hpb=c5073aa4468c1fab57942e6b8616339f7cd155d8;p=ext%2Fsubsurface.git diff --git a/profile.c b/profile.c index d2ebf4a..f0ae0c9 100644 --- a/profile.c +++ b/profile.c @@ -698,7 +698,8 @@ static void plot_cylinder_pressure_text(struct graphics_context *gc, struct plot } } cyl = entry->cylinderindex; - last_pressure[cyl] = GET_PRESSURE(entry); + if (GET_PRESSURE(entry)) + last_pressure[cyl] = GET_PRESSURE(entry); last_time[cyl] = entry->sec; for (cyl = 0; cyl < MAX_CYLINDERS; cyl++) { @@ -934,6 +935,7 @@ static void fill_missing_tank_pressures(struct dive *dive, struct plot_info *pi, if (!nlist) { /* just continue without calculating * interpolated values */ + INTERPOLATED_PRESSURE(entry) = cur_pr[entry->cylinderindex]; list = NULL; continue; }