On 05/11/2014 09:04, Miika Turkia wrote:
On Wed, Nov 5, 2014 at 2:48 PM, Willem Ferguson <[email protected] <mailto:[email protected]>> wrote:

    Miika,

    A problem arises when importing several dive logs. It appears some
    of the cylinder storage assignments are not reset between
    consecutive imports. I attach three images of the cylinder table
    for each of three consecutive imports.
    Import_1.png: First import, all assignments correct.
    Import_2.png: Two new cylinders are created and pressure info
    stored there. Gas composition info stored correctly.
    Import_3.png: Third import. Yet two more new cylinders created
    into which pressure info is stored. But gas composition info
    stored correctly.

    I cannot see anything obvious in file.c. Could it be that some
    sync with the Qt code is required?


I suppose we need to re-set the cylinder counter to zero when parsing a new log file. Will this patch do the trick for you?

miika

Yup, Thank you very much. It does solve the problem. I was wondering about that external variable definition.

There is still a remaining inconsistency but first I need to look into that in more detail to try and understand it.
Kind regards,
willem


_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to