mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
Uemis downloader: parse dive_no as well
[Dirk Hohndel: refactored one huge commit into smaller pieces] Signed-off-by: Guido Lerch <guido.lerch@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ff0859ff21
commit
040caaa00b
1 changed files with 2 additions and 0 deletions
|
@ -727,6 +727,8 @@ static void parse_tag(struct dive *dive, char *tag, char *val)
|
|||
} else if (!strcmp(tag, "u8SuitThickness")) {
|
||||
if (*suit_thickness[atoi(val)])
|
||||
uemis_add_string(translate("gettextFromC", suit_thickness[atoi(val)]), &dive->suit);
|
||||
} else if (!strcmp(tag, "dive_no")) {
|
||||
dive->number = atoi(val);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue