diff options
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/parse-xml.c b/parse-xml.c index 5f1dfed82..1d08ca009 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1201,10 +1201,8 @@ static void try_to_fill_trip(dive_trip_t **dive_trip_p, const char *name, char * if (MATCH(".date", divedate, &dive_trip->when)) return; - if (MATCH(".time", divetime, &dive_trip->when)) { - dive_trip->when_from_file = dive_trip->when; + if (MATCH(".time", divetime, &dive_trip->when)) return; - } if (MATCH(".location", utf8_string, &dive_trip->location)) return; if (MATCH(".notes", utf8_string, &dive_trip->notes)) |