mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:23:23 +00:00
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:
parent
360cd85445
commit
f9988f0aea
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue