mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Index used cylinder properly on divelogs.de export
The wrong O2 percentage was due to not referring to the correct cylinder but grabbing any o2 value in any cylinder. While fixing this, I noticed that also end pressure was missing the cylinder selection, so fixing that as well. Fixes #626 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
45acec0e25
commit
796df27273
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@
|
|||
<xsl:value-of select="node()/sample[@pressure][last()]/@pressure"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="cylinder[$cylinder]/@end"/>
|
||||
<xsl:value-of select="cylinder[position() = $cylinder]/@end"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</CYLINDERENDPRESSURE>
|
||||
|
@ -99,7 +99,7 @@
|
|||
</xsl:call-template>
|
||||
</WEIGHT>
|
||||
<O2PCT>
|
||||
<xsl:value-of select="substring-before(cylinder/@o2, '%')"/>
|
||||
<xsl:value-of select="substring-before(cylinder[position() = $cylinder]/@o2, '%')"/>
|
||||
</O2PCT>
|
||||
<LOGNOTES>
|
||||
<xsl:value-of select="notes"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue