Saving Copy as WMF is broken

Bug #655289 reported by uwestoehr
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned
UniConvertor
New
Undecided
Unassigned

Bug Description

- open th attached SVG file
- use the menu File-> Save Copy As and then WMF

result: I get this error:

UniConvertor failed:

Traceback (most recent call last):

  File "C:\Programme\Inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 1305, in Load
    xml_reader.parse(input_source)
  File "C:\Programme\Inkscape\python\Lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Programme\Inkscape\python\Lib\xml\sax\xmlreader.py", line 125, in parse
    self.close()
  File "C:\Programme\Inkscape\python\Lib\xml\sax\expatreader.py", line 218, in close
    self._cont_handler.endDocument()
  File "C:\Programme\Inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 559, in endDocument
    self.parseElements(element)
  File "C:\Programme\Inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 586, in parseElements
    getattr(self, method)()
  File "C:\Programme\Inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 420, in stop_linearGradient
    self.gradients[self.current_gradient]=MultiGradient(self.stops)
  File "C:\Programme\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\gradient.py", line 43, in __init__
    raise ValueError, 'at least 2 colors required'
ValueError: at least 2 colors required
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Programme\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 95, in uniconv_run
    doc = load.load_drawing(input_file)
  File "C:\Programme\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 377, in load_drawing
    return load_drawing_from_file(file, filename)
  File "C:\Programme\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 354, in load_drawing_from_file
    raise SketchLoadError(_("Parsing error: ")+ str(value))
app.events.skexceptions.SketchLoadError: Parsing error: at least 2 colors required

Revision history for this message
uwestoehr (uwestoehr) wrote :
Revision history for this message
uwestoehr (uwestoehr) wrote :

When reporting bugs, there is no field to specify the version and the OS!

I'm using 0.48 on WinXP.

su_v (suv-lp)
tags: added: exporting uniconvertor wmf
Revision history for this message
su_v (suv-lp) wrote :

Not reproduced with Inkscape 0.48 and 0.48+devel r9812 on OS X 10.5.8 with UniConvertor 1.1.5 prerelease

Export as is works, but the rectangles are displaced to the left. I get better results when converting all rectangles to path before saving a copy as WMF.

Possibly platform-dependent issue (win32), or bug in the current stable UniConvertor release?

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

confirmed on Windows XP, Inkscape 0.48.0 r9654 (Aug 16 2010), uniconv 1.1.5, exit message is the same as above.

I do not get this problem if I use uniconvertor 1.1.4 from a DOS prompt, wmf file attached

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

fwiw, the problem disappears if you delete the linear gradient that is present in the defs section, wmf file attached:

jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
tiger (tiger66) wrote :
Revision history for this message
uwestoehr (uwestoehr) wrote :

Fixed in Inkscape 0.91pre2, maybe also fixed in 0.48.5. If so, please close.

Changed in inkscape:
status: Confirmed → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.91
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.