[PATCH 4/4] DiveLog import: Only include weight when available
Miika Turkia
miika.turkia at gmail.com
Wed Feb 18 09:55:32 PST 2015
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
xslt/DiveLog.xslt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xslt/DiveLog.xslt b/xslt/DiveLog.xslt
index 7d21b10..b94e287 100644
--- a/xslt/DiveLog.xslt
+++ b/xslt/DiveLog.xslt
@@ -128,7 +128,7 @@
</xsl:if>
</cylinder>
- <xsl:if test="@Weight != ''">
+ <xsl:if test="@Weight != '' and @Weight != '0.0'">
<weightsystem>
<xsl:attribute name="weight">
<xsl:call-template name="weightConvert">
--
2.1.0
More information about the subsurface
mailing list