mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
048c5e01b1
commit
af323a9fb1
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue