aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2020-05-24 17:29:42 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-26 11:33:10 -0700
commit790c89549a5b1363b5cc3a5bb7237490e8506253 (patch)
treebd73329a3cff07e77b15e2036e79e188f9360cb2 /xslt
parent3a1502de7105b70e9db6558c8565efc95e6a8a18 (diff)
downloadsubsurface-790c89549a5b1363b5cc3a5bb7237490e8506253.tar.gz
Fix precision bug on SubsurfaceCSV import
We need decimal point as size is stored with one decimal on imperial export. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/subsurfacecsv.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt
index 81aa03033..5a78343cf 100644
--- a/xslt/subsurfacecsv.xslt
+++ b/xslt/subsurfacecsv.xslt
@@ -427,7 +427,7 @@
<xsl:value-of select="$size"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="format-number((translate($size, translate($size, '0123456789', ''), '') * 14.7 div 3000) div 0.035315, '#.#')"/>
+ <xsl:value-of select="format-number((translate($size, translate($size, '0123456789,.', ''), '') * 14.7 div 3000) div 0.035315, '#.#')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>