Thread subject: sK1 Project :: Error if convert SVG to WMF

Posted by xintrea on 17-08-2010 10:52
#1

Hi.


Uniconvertor 1.1.6pre from SVN, revision 291.

In process of convert SVG to WMF, uniconverter drop with error:

Code

Traceback (most recent call last):
  File "/usr/bin/uniconvertor", line 13, in <module>
    uniconv_run()
  File "/usr/lib/python2.5/site-packages/uniconvertor/__init__.py", line 100, in uniconv_run
    saver(doc, output_file)
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/__init__.py", line 212, in __call__
    module.save(document, file, filename, options)
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 461, in save
    saver.SaveDocument(document)
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 448, in SaveDocument
    self.SaveLayers(doc.Layers())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 366, in SaveLayers
    self.SaveObjects(layer.GetObjects())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 353, in SaveObjects
    self.SaveObjects(object.GetObjects())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 353, in SaveObjects
    self.SaveObjects(object.GetObjects())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 361, in SaveObjects
    self.PolyBezier(object.Paths(), object.Properties())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 264, in PolyBezier
    self.FillStyle(Properties)
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 234, in FillStyle
    self.CreateSelectBrush(Props.fill_pattern.gradient.Sample(3)[1])
  File "/usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/gradient.py", line 91, in Sample
    pos2, color2 = colors[cur]
IndexError: list index out of range




Posted by igor on 23-08-2010 06:36
#2

Hi!

Thank you for reported issue.
Can you provide a sample file to reproduce an error?