Changeset 4ced7c3 in subsurface


Ignore:
Timestamp:
Apr 1, 2017, 8:06:09 AM (7 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
25a628b
Parents:
841d1b4
git-author:
Miika Turkia <miika.turkia@…> (03/13/17 23:07:48)
git-committer:
Dirk Hohndel <dirk@…> (04/01/17 08:06:09)
Message:

Fix size conversion on imperial CSV import

We really need the decimal separator to get correct results

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/manualcsv2xml.xslt

    r2d69f8c9 r4ced7c3  
    283283                </xsl:when>
    284284                <xsl:otherwise>
    285                   <xsl:value-of select="format-number((translate($size, translate($size, '0123456789', ''), '') * 14.7 div 3000) div 0.035315, '#.#')"/>
     285                  <xsl:value-of select="format-number((translate($size, translate($size, '0123456789.,', ''), '') * 14.7 div 3000) div 0.035315, '#.#')"/>
    286286                </xsl:otherwise>
    287287              </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.