Fix cylinder pressure for UDDF export

Fixes #1086

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2016-07-28 06:39:01 +03:00 committed by Dirk Hohndel
parent e80b03699d
commit 0e31171087

View file

@ -329,7 +329,7 @@
</xsl:when>
<xsl:otherwise>
<tankpressurebegin>
<xsl:value-of select="substring-before(divecomputer[1]/sample[@pressure]/@pressure[1], ' ') * 100000"/>
<xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure]/@pressure[1], ' ') * 100000"/>
</tankpressurebegin>
</xsl:otherwise>
</xsl:choose>
@ -342,7 +342,7 @@
</xsl:when>
<xsl:otherwise>
<tankpressureend>
<xsl:value-of select="substring-before(divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') * 100000"/>
<xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure[1], ' ') * 100000"/>
</tankpressureend>
</xsl:otherwise>
</xsl:choose>