Comment 40 for bug 1240455

Revision history for this message
Alvin Penner (apenner) wrote :

thanks, I'll try out that file later today.

In the meantime, just a quick shot in the dark. If you are getting errors like this one:

Traceback (most recent call last):
  File "dxf_outlines.py", line 345, in <module>
    e.affect()
  File "/Users/su_v/Applications/TST/with a space/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 261, in affect
    self.effect()
  File "dxf_outlines.py", line 328, in effect
    h = self.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])
IndexError: list index out of range

then you might try Python code like this:

h = something reasonable
if self.document.getroot().xpath('@height', namespaces=inkex.NSS):
     h = self.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])