On 14 November 2014 23:47, Dirk Hohndel <[email protected]> wrote: > On Fri, Nov 14, 2014 at 01:16:44PM -0800, Dirk Hohndel wrote: >> This is my code, not Tomaz'... I'll need to look at what's happening. >> There is a bit of magic involved here :-/ > > And some of it was dark magic, or more precisely magic coming from a > rather dark place... :-( > >> So when we switch dives, current_dive points to the new selected dive and >> then that dive is COPIED into displayed_dive and that is shown. When you > > Except that the cylinder descriptions were not copied - the pointers were > copied. Which caused the problem you tracked down. Thanks for finding this > issue! > > Fix is pushed, please verify! >
yes, the corrupted text no longer shows, one other thing i just saw is - having a dive with one cylinder, then add another cylinder and then save to XML stores both, yet when loading that XML only the first one is loaded. not sure if intended. weight systems load fine. (XML attached). lubomir --
<divelog program='subsurface' version='2'> <settings> </settings> <dives> <dive date='2011-01-01' time='07:00:00' duration='30:00 min'> <cylinder size='6.934 l' workpressure='206.843 bar' description='AL50' /> <cylinder size='5.547 l' workpressure='206.843 bar' description='AL40' /> <divecomputer> <depth max='30.0 m' mean='15.0 m' /> </divecomputer> </dive> </dives> </divelog>
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
