mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Better handling of manually edited air temperature
We now load and save this in the XML file, we do the right thing when merging dives and show the edited air temperature in the Dive Info notebook when a divecomputer doesn't have an air temperature. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ca19578e40
commit
23cfd907de
5 changed files with 50 additions and 3 deletions
|
@ -1011,6 +1011,8 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
|
|||
return;
|
||||
if (MATCH(".he", gasmix, &dive->cylinder[cur_cylinder_index].gasmix.he))
|
||||
return;
|
||||
if (MATCH(".divetemperature.air", temperature, &dive->airtemp))
|
||||
return;
|
||||
|
||||
nonmatch("dive", name, buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue