mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
No negative depth on divelogs.de export
Crafting depth samples produced a negative depth for the last sample. This patch checks that negative last sample is ignored. (This occurred when last manual sample is not full minutes.) Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
27fa775c7c
commit
07fabc03fd
1 changed files with 7 additions and 5 deletions
|
@ -214,11 +214,13 @@
|
|||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<SAMPLE>
|
||||
<DEPTH>
|
||||
<xsl:value-of select="$curdepth div 1000"/>
|
||||
</DEPTH>
|
||||
</SAMPLE>
|
||||
<xsl:if test="$curdepth > 0">
|
||||
<SAMPLE>
|
||||
<DEPTH>
|
||||
<xsl:value-of select="$curdepth div 1000"/>
|
||||
</DEPTH>
|
||||
</SAMPLE>
|
||||
</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
|
|
Loading…
Reference in a new issue