Comment 8 for bug 484016

Revision history for this message
jazzynico (jazzynico) wrote :

Patch tested on Ubuntu 9.10, Inkscape 0.47pre4 and Python 2.6.4 and 2.5. The file is correctly exported with no warning or error.

It's unrelated to the patch, but I've noticed an error when saving a default template as xcf without resizing it. In this case, the export script returns this error message:

Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/gimp_xcf.py", line 185, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 207, in affect
    self.effect()
  File "/usr/share/inkscape/extensions/gimp_xcf.py", line 44, in effect
    pageHeight = int(self.xpathSingle('/svg:svg/@height').split('.')[0])
ValueError: invalid literal for int() with base 10: '297mm'

After resizing the page with Document properties>Fit page to selection, the size unit is removed from Height and Width attributes and everything works well.