]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Import Divesuit information from DivingLog XML file
authorDirk Hohndel <dirk@hohndel.org>
Sat, 18 Aug 2012 03:22:37 +0000 (20:22 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Sat, 18 Aug 2012 03:22:37 +0000 (20:22 -0700)
Trivial two-liner patch

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
parse-xml.c

index a36758ca0e72da72e85904cce1fee4001ff0c025..173314dd42161ff28af7c7374bdf80e23ee6a706 100644 (file)
@@ -1102,6 +1102,8 @@ static void try_to_fill_dive(struct dive **divep, const char *name, char *buf)
                return;
        if (MATCH(".suit", utf8_string, &dive->suit))
                return;
+       if (MATCH(".divesuit", utf8_string, &dive->suit))
+               return;
        if (MATCH(".notes", utf8_string, &dive->notes))
                return;
        if (MATCH(".divemaster", utf8_string, &dive->divemaster))