Fix size conversion on imperial CSV import

We really need the decimal separator to get correct results

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-03-14 08:07:48 +02:00 committed by Dirk Hohndel
parent 841d1b4fac
commit 4ced7c3f73

View file

@ -282,7 +282,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:attribute>