summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-22 20:51:03 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-22 20:51:03 -0700
commitd9ca1b6fbf42b15b597e51f018fdb5df65ee2c29 (patch)
tree72974ce5bf42ff22df48dfc0b379cf4f334fbf04 /parse-xml.c
parent33b6d090003e5c06ac036808361cf3488c7dfee6 (diff)
downloadsubsurface-d9ca1b6fbf42b15b597e51f018fdb5df65ee2c29.tar.gz
Drop surface events when reading from an XML file too
Remember those useless surface events that we ignore when we import a dive from a dive computer? Yeah, they exist in the libdivelog xml files too. So ignore them when we see them there too. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index e6472735d..50f83f68b 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1175,7 +1175,7 @@ static void event_start(void)
static void event_end(void)
{
- if (event.name)
+ if (event.name && strcmp(event.name, "surface") != 0)
add_event(dive, event.time.seconds, event.type, event.flags, event.value, event.name);
event.active = 0;
}