Hello,
I do each time altitude corrections, and save.
After saving, i need to go back to initial fit file data --> i reimport tour from fit.
With current version : either altitude reimport only, or even complete tour reimport, gives me same result : altitude graph (values)is well reimported but total ascent/descent is still the one before reimport (= the one calculated and saved after altitude correction).
Only way to get initial values = delete tour and begin from scratch.
here is small screenshots :
1 = initial tour values
2 = values after altitude correction
3 = altitude or whole tour reimport logs
example :
create tour = import fit file
altitude correction = altitude start=altitude end --> ascent change from 271m to 300m
reimport fit file altitude --> altitude values reimported but ascent still 300m
reimport all tour --> same effect
Need to delete tour and reimport from scratch.
1 = initial tour values

2 = values after altitude correction

3 = altitude or whole tour reimport logs

Diff:
Diff:
Fixed in https://github.com/wolfgang-ch/mytourbook/commit/5e7d27dce3c6e4575e66a8e1201ae1a213de45e4
I don't understand the code, but i trust your fix, waiting for release to use it, thanks for this.