]> git.tdb.fi Git - ext/subsurface.git/commit
Don't overwrite the end pressure with sample data if one already exists
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 19 Oct 2011 16:25:47 +0000 (09:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 19 Oct 2011 16:25:47 +0000 (09:25 -0700)
commit9dce78c89fe77a107af7a8c962da19780485c3e2
tree3aacf276213e4952dbb12be3ce1810839a4d070c
parent2b3d39f6fc9814fb1190dd5b69396defe4cc85cf
Don't overwrite the end pressure with sample data if one already exists

If we have en explicit end pressure in the dive information, we should
not change it just because we also have some samples.  The sample data
may not be complete (read: "Linus wireless connection dropped during the
dive again, and he fixed up the end pressure manually afterwards").

The beginning pressure already works correctly, because it will only use
the sample data for the first sample if no pressure existed before.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
dive.c