Only include samples with data on UDDF import

According to the specification each proper sample should have depth, so
we can just ignore the empty waypoints.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-11-03 18:12:48 +02:00 committed by Dirk Hohndel
parent 048c5e01b1
commit af323a9fb1

View file

@ -458,6 +458,7 @@
</xsl:for-each>
<xsl:for-each select="samples/waypoint|u:samples/u:waypoint|u1:samples/u1:waypoint|samples/d">
<xsl:if test="./depth|./u:depth|./u1:depth != ''">
<sample>
<xsl:attribute name="time">
<xsl:call-template name="timeConvert">
@ -558,6 +559,7 @@
</xsl:attribute>
</xsl:if>
</sample>
</xsl:if>
</xsl:for-each>
</divecomputer>
</dive>