]> git.tdb.fi Git - ext/subsurface.git/commit
Fix an issue with trips that have dives from multiple input files
authorDirk Hohndel <dirk@hohndel.org>
Mon, 27 Aug 2012 22:29:40 +0000 (15:29 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Mon, 27 Aug 2012 22:29:40 +0000 (15:29 -0700)
commit9cf961249e197d6d8a3656968ce15dfd19e3ef3b
tree92676f36bb7fa383a5fcee21fdad0d8c9dd79a16
parent6500e943c18a416b4f628a963d067ee977da48ba
Fix an issue with trips that have dives from multiple input files

The existing code didn't handle the case of different trips for the same
date coming from different sources. It also got confused if the first dive
processed (which is, chronologically, the last dive) happened to be a
"NOTRIP" dive.

This commit adds a bit of debugging infrastructure for the trip handling,
too.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
dive.h
divelist.c
parse-xml.c