Changeset f9988f0 in subsurface


Ignore:
Timestamp:
Apr 11, 2017, 5:26:45 PM (7 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
2d5519a
Parents:
360cd85
git-author:
Miika Turkia <miika.turkia@…> (04/09/17 05:31:46)
git-committer:
Dirk Hohndel <dirk@…> (04/11/17 17:26:45)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/DivingLog.xslt

    r360cd85 rf9988f0  
    109109        </xsl:if>
    110110
    111         <xsl:if test="Gas != ''">
     111        <xsl:if test="Gas != '' and substring-after(substring-before(Gas, ')'), 'O2=') != ''">
    112112          <xsl:attribute name="o2">
    113113            <xsl:value-of select="substring-after(substring-before(Gas, ')'), 'O2=')"/>
Note: See TracChangeset for help on using the changeset viewer.