]> git.tdb.fi Git - ext/subsurface.git/commit
Fix drawing artifact with UEMIS xml data
authorDirk Hohndel <dirk@hohndel.org>
Tue, 6 Sep 2011 14:30:48 +0000 (07:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Sep 2011 14:30:48 +0000 (07:30 -0700)
commitd4db3e938b16c67d20a40833323f64ca5d0024f2
tree11aa7afebd8935bf694f23ec11527b2d740307eb
parentf7a36cfefd15a46494adfbf237f2db7f97d1fb1b
Fix drawing artifact with UEMIS xml data

Only draw the pressure line to the final data point
(duration / end.mbar) if we haven't already drawn samples
past that point (as the UEMIS records pressure data for a
number of additional samples after the actual dive has ended)

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
[ Changed to use 'last actual drawn sample time that had pressure
  data' instead of 'last sample time'  - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
profile.c