DiveLog import: Only include weight when available

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-02-18 19:55:32 +02:00 committed by Dirk Hohndel
parent 541ec4fcac
commit 554b652d25

View file

@ -128,7 +128,7 @@
</xsl:if> </xsl:if>
</cylinder> </cylinder>
<xsl:if test="@Weight != ''"> <xsl:if test="@Weight != '' and @Weight != '0.0'">
<weightsystem> <weightsystem>
<xsl:attribute name="weight"> <xsl:attribute name="weight">
<xsl:call-template name="weightConvert"> <xsl:call-template name="weightConvert">