summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-31 08:19:37 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-31 10:32:17 -0700
commitd7a5bae4c8e32232818d76626a1b737c625b7c19 (patch)
tree2007c8b5c398f97f631561de304862e4654f899d
parent5c1acca2121e33b896a451e475cb7d5102257dd8 (diff)
downloadsubsurface-d7a5bae4c8e32232818d76626a1b737c625b7c19.tar.gz
CSV import: fix imperial conversion for weight
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--xslt/manualcsv2xml.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index 83c543581..5141c445e 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -377,7 +377,7 @@
<xsl:value-of select="translate($weight, translate($weight, '1234567890,.', ''), '')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="translate(translate($weight, translate($weight, '1234567890,.', ''), ''), ',', '.') * 0.3048"/>
+ <xsl:value-of select="translate(translate($weight, translate($weight, '1234567890,.', ''), ''), ',', '.') div 2.2046"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>