From: acspike Date: Thu, 8 Jun 2006 02:27:53 +0000 (+0000) Subject: fix [ 1500602 ] 0.44pre2-1.win32: saving DXF file error X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fc6b8471b2e36e4343a54eb3580ceb64c320972f;p=inkscape.git fix [ 1500602 ] 0.44pre2-1.win32: saving DXF file error --- 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)