Fix DivingLog's O2 import

Make sure the Gas setup contains O2 value when trying to import that.
In latest log sample the Gas seems to contain the decompression
algorithm used. And as this value was grabbed after O2, we ended up with
empty O2.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-04-09 15:31:46 +03:00 committed by Dirk Hohndel
parent 360cd85445
commit f9988f0aea

View file

@ -108,7 +108,7 @@
</xsl:attribute>
</xsl:if>
<xsl:if test="Gas != ''">
<xsl:if test="Gas != '' and substring-after(substring-before(Gas, ')'), 'O2=') != ''">
<xsl:attribute name="o2">
<xsl:value-of select="substring-after(substring-before(Gas, ')'), 'O2=')"/>
</xsl:attribute>