summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-11-26 15:12:19 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-26 21:45:38 -0700
commitdf3671390d4b009525faf00926ca2a7b558a8ae6 (patch)
tree97ba42aeff89f29fa148f7f3d38f9a8860916695 /info.c
parent6fe52ee19e5e9cd33bd1ceab4609f31829ff2f08 (diff)
downloadsubsurface-df3671390d4b009525faf00926ca2a7b558a8ae6.tar.gz
Fix dive computer event handling if there are no samples
This actually triggers for one of our insane test dives (test15): it has no samples, so we created a fake dive computer entry with the a fake profile in it, but we didn't copy the events over. Having a dive with no samples, yet having events from the dive computer, sounds pretty bogus. But that test-case did show that when that bogus situation happens, we had two independent buglets: (a) we didn't insert the entries in the fake dive computer entry we used and (b) we would then mix up the events of the fake dive computer entry with the first dive computer of a dive. Fix this, just to make test15 happy again. And eventually, when we actually plot the information for multiple dive computers, fixing case (b) would become necessary even for real dives. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
0 files changed, 0 insertions, 0 deletions