X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=profile.c;h=60b9ab9d9df85dd8cb99db3b33193a5bc9f07ae7;hb=e919a0f2eac8bc4471b499b73a77c95e81240fd9;hp=e5c7238a6b0fc683bccd19372aed88b4e822472c;hpb=45d4d5ecdec6d02b2564d512cd95118f474855e8;p=ext%2Fsubsurface.git diff --git a/profile.c b/profile.c index e5c7238..60b9ab9 100644 --- a/profile.c +++ b/profile.c @@ -719,6 +719,8 @@ static struct plot_info *create_plot_info(struct dive *dive) entry->same_cylinder = sample->cylinderindex == cylinderindex; cylinderindex = sample->cylinderindex; entry->pressure = sample->cylinderpressure.mbar; + if (!entry->same_cylinder && !entry->pressure) + entry->pressure = dive->cylinder[cylinderindex].start.mbar; entry->temperature = sample->temperature.mkelvin; if (depth || lastdepth)