mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:23:23 +00:00
Fix a bug that added 0, 0 as location on manual CSV import
The existence of location information was tested incorrectly resulting in erroneously adding these fields if they were not present. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
028b937034
commit
64c735f2ae
1 changed files with 3 additions and 3 deletions
|
@ -166,9 +166,9 @@
|
|||
|
||||
<divecomputerid deviceid="ffffffff" model="csv" />
|
||||
|
||||
<xsl:if test="$locationField != '' or $gpsField != ''">
|
||||
<xsl:if test="$locationField >= 0 or $gpsField >= 0">
|
||||
<location>
|
||||
<xsl:if test="$gpsField != ''">
|
||||
<xsl:if test="$gpsField >= 0">
|
||||
<xsl:attribute name="gps">
|
||||
<xsl:call-template name="getFieldByIndex">
|
||||
<xsl:with-param name="index" select="$gpsField"/>
|
||||
|
@ -176,7 +176,7 @@
|
|||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="$locationField != ''">
|
||||
<xsl:if test="$locationField >= 0">
|
||||
<xsl:call-template name="getFieldByIndex">
|
||||
<xsl:with-param name="index" select="$locationField"/>
|
||||
<xsl:with-param name="line" select="$line"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue