This speeds up Aquadivelog imports marginally by doing lookup to used
equipments only instead of all equipment ever used.

Signed-off-by: Miika Turkia <miika.tur...@gmail.com>
---
 xslt/uddf.xslt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 45e3ba0..bdcdf80 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -298,7 +298,7 @@
           <xsl:value-of select="./@tank"/>
         </xsl:variable>
         <xsl:variable name="idx">
-          <xsl:value-of 
select="//equipment_used/tank_used[@id=$tank_idx]/gas_ref/@ref"/>
+          <xsl:value-of 
select="../../equipment_used/tank_used[@id=$tank_idx]/gas_ref/@ref"/>
         </xsl:variable>
 
         <event name="gaschange" type="11">
-- 
1.9.1

_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to