<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 5, 2014 at 2:48 PM, Willem Ferguson <span dir="ltr"><<a href="mailto:willemferguson@zoology.up.ac.za" target="_blank">willemferguson@zoology.up.ac.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Miika,<br>
<br>
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.<br>
Import_1.png: First import, all assignments correct.<br>
Import_2.png: Two new cylinders are created and pressure info stored there. Gas composition info stored correctly.<br>
Import_3.png: Third import. Yet two more new cylinders created into which pressure info is stored. But gas composition info stored correctly.<br>
<br>
I cannot see anything obvious in file.c. Could it be that some sync with the Qt code is required?<br></blockquote><div><br></div><div>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?<br><br>miika <br></div></div><br></div></div>