From fc6b8471b2e36e4343a54eb3580ceb64c320972f Mon Sep 17 00:00:00 2001 From: acspike Date: Thu, 8 Jun 2006 02:27:53 +0000 Subject: [PATCH] fix [ 1500602 ] 0.44pre2-1.win32: saving DXF file error --- share/extensions/inkex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py index 64efdabda..e17111057 100755 --- a/share/extensions/inkex.py +++ b/share/extensions/inkex.py @@ -94,9 +94,9 @@ class Effect: layerattr = xml.xpath.Evaluate('//sodipodi:namedview/@inkscape:current-layer',self.document,context=ctx) if layerattr: layername = layerattr[0].value - layer = xml.xpath.Evaluate('//g[@id="%s"]' % layername,self.document,context=ctx)[0] + layer = xml.xpath.Evaluate('//g[@id="%s"]' % layername,self.document,context=ctx) if layer: - self.current_layer = layer + self.current_layer = layer[0] xattr = xml.xpath.Evaluate('//sodipodi:namedview/@inkscape:cx',self.document,context=ctx) yattr = xml.xpath.Evaluate('//sodipodi:namedview/@inkscape:cy',self.document,context=ctx) -- 2.30.2