diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-12-13 16:17:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-13 08:51:47 -0800 |
commit | 0a99c2659075e87ac24068368efba1eceed9a106 (patch) | |
tree | 2c7e483456a215d104a04504ad6424b3aa3c69b9 | |
parent | aa76bbaa97593f59c5f262acd43e5f1fe291d4a9 (diff) | |
download | subsurface-0a99c2659075e87ac24068368efba1eceed9a106.tar.gz |
Export leadquantity only when we have weights
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | xslt/uddf-export.xslt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt index 8a24f0ebe..9b33149d4 100644 --- a/xslt/uddf-export.xslt +++ b/xslt/uddf-export.xslt @@ -583,7 +583,9 @@ </visibility> <equipmentused> <leadquantity> - <xsl:value-of select="sum(xt:node-set($trimmedweightlist))"/> + <xsl:if test="sum(xt:node-set($trimmedweightlist)) >= 0"> + <xsl:value-of select="sum(xt:node-set($trimmedweightlist))"/> + </xsl:if> </leadquantity> </equipmentused> |