diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-01-29 19:11:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-29 09:38:47 -0800 |
commit | 1b48b19d0bdb40188d2175f07ea59c0795231375 (patch) | |
tree | 6323f760d2dc7bc947d68687fa406b8b458b9867 /xslt/divelogs-export.xslt | |
parent | 485fde8979b77f5fa0c6d800c9993254de8a3358 (diff) | |
download | subsurface-1b48b19d0bdb40188d2175f07ea59c0795231375.tar.gz |
Export cylinder information to divelogs.de also if pressure dropped
This will export the cylinder information to divelogs.de also if there
is a pressure drop of at least 5 bars. (Previously only a gas switch to
the gas triggered the export of that particular cylinder.)
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/divelogs-export.xslt')
-rw-r--r-- | xslt/divelogs-export.xslt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt index 79f72b5fd..5752a4452 100644 --- a/xslt/divelogs-export.xslt +++ b/xslt/divelogs-export.xslt @@ -119,7 +119,7 @@ </xsl:otherwise> </xsl:choose> </xsl:variable> - <xsl:if test="following-sibling::divecomputer/event[@name='gaschange' and @value=$gas]"> + <xsl:if test="following-sibling::divecomputer/event[@name='gaschange' and @value=$gas] or substring-before(@start, ' ') - 5 > substring-before(@end, ' ')"> <xsl:variable name="cur_cyl"> <xsl:value-of select="position()"/> </xsl:variable> |