Data corruption when saving dives in win daily 4.2.-457

Dirk Hohndel dirk at hohndel.org
Fri Nov 14 13:47:40 PST 2014


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!

/D


More information about the subsurface mailing list