mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
Add two test dives that triggered the bug fixed in the previous commit
Loading these two XML files created a divelist with two trips that each started at the same time but that were NOT linked together (because the code in insert_trip detected that they started at the same time). Since the trips were not linked together, trying to then merge those two trips from the UI got us into an infinite loop, trying to move a dive from one trip into the same trip (as the code couldn't find the trip that wasn't linked into the dive_trip_list). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
936d289cb7
commit
c796c16115
2 changed files with 46 additions and 0 deletions
23
dives/test25.xml
Normal file
23
dives/test25.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<dives>
|
||||
<program name='subsurface' version='1'></program>
|
||||
<trip date='2011-12-06' time='6:00:00' location='First Trip'>
|
||||
<dive number='26' date='2011-12-02' time='6:00:00' duration='30:00 min'>
|
||||
<depth max='24.3 m' mean='12.773 m' />
|
||||
<temperature air='24.3 C' water='24.2 C' />
|
||||
<surface pressure='0.981 bar' />
|
||||
<water salinity='1000 g/l' />
|
||||
<location>Dive location</location>
|
||||
<notes>New trip format + includes a divecomputer section</notes>
|
||||
<cylinder size='15.0 l' workpressure='202.6 bar' description='AL106' />
|
||||
<divecomputer model='Model Product' deviceid='e04d0248' diveid='00000002'>
|
||||
<event time='27:50 min' name='Speed Alarm' />
|
||||
<sample time='0:06 min' depth='1.86 m' temp='24.3 C' ndl='99:00 min' />
|
||||
<sample time='1:00 min' depth='20 m' temp='24.2 C' />
|
||||
<sample time='27:00 min' depth='20 m' />
|
||||
<sample time='28:00 min' depth='3 m' />
|
||||
<sample time='29:00 min' depth='3 m' />
|
||||
<sample time='30:00 min' depth='0.3 m' />
|
||||
</divecomputer>
|
||||
</dive>
|
||||
</trip>
|
||||
</dives>
|
23
dives/test26.xml
Normal file
23
dives/test26.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<dives>
|
||||
<program name='subsurface' version='1'></program>
|
||||
<trip date='2011-12-06' time='6:00:00' location='First Trip'>
|
||||
<dive number='27' date='2011-12-02' time='6:35:00' duration='30:00 min'>
|
||||
<depth max='24.3 m' mean='12.773 m' />
|
||||
<temperature air='24.3 C' water='24.2 C' />
|
||||
<surface pressure='0.981 bar' />
|
||||
<water salinity='1000 g/l' />
|
||||
<location>Same dive location</location>
|
||||
<notes>New trip format + includes a divecomputer section - designed to be manually merged wiht previous dive.</notes>
|
||||
<cylinder size='15.0 l' workpressure='202.6 bar' description='AL106' />
|
||||
<divecomputer model='Model Product' deviceid='e04d0248' diveid='00000002'>
|
||||
<event time='27:50 min' name='Speed Alarm' />
|
||||
<sample time='0:06 min' depth='1.86 m' temp='24.3 C' ndl='99:00 min' />
|
||||
<sample time='1:00 min' depth='20 m' temp='24.2 C' />
|
||||
<sample time='27:00 min' depth='20 m' />
|
||||
<sample time='28:00 min' depth='3 m' />
|
||||
<sample time='29:00 min' depth='3 m' />
|
||||
<sample time='30:00 min' depth='0.3 m' />
|
||||
</divecomputer>
|
||||
</dive>
|
||||
</trip>
|
||||
</dives>
|
Loading…
Add table
Reference in a new issue