#623724 dia: can not import Plain SVG created with inkscape. Example attached.

Package:
dia
Source:
dia
Description:
Diagram editor
Submitter:
Jonas Stein
Date:
2011-12-30 12:13:02 UTC
Severity:
normal
#623724#5
Date:
2011-04-22 14:05:46 UTC
From:
To:
can not import Plain SVG created with inkscape. Example attached.

** (dia:6878): WARNING **: Too few BezPoints!
** (dia:6878): DEBUG: PyDiaProperty_ApplyToObject : no conversion bez_points -> bezpointarray
<type 'exceptions.TypeError'>TypeError('prop type mis-match.',)Traceback (most recent call last):
  File "/usr/share/dia/python/diasvg_import.py", line 714, in import_svg
    return imp.Render(diagramData)
  File "/usr/share/dia/python/diasvg_import.py", line 663, in Render
    od = o.Create()
  File "/usr/share/dia/python/diasvg_import.py", line 303, in Create
    od = o.Create()
  File "/usr/share/dia/python/diasvg_import.py", line 201, in Create
    self.ApplyProps(o)
  File "/usr/share/dia/python/diasvg_import.py", line 442, in ApplyProps
    o.properties["bez_points"] = self.pts

#623724#10
Date:
2011-05-05 09:42:11 UTC
From:
To:
Hi,

thanks for your report!

Unfortunately, I can't reproduce the problem on "import": I'm not sure
which import function you are referring to. Directly opening the file on
the command line (like "dia herd.svg") is only supported for dia files.

Adding an image to a dia file, with herd.svg as image contents works for me.

Can you please elaborate about how we can reproduce the problem?

Thanks in advance!

Roland

#623724#13
Date:
2011-05-05 09:42:11 UTC
From:
To:
Hi,

thanks for your report!

Unfortunately, I can't reproduce the problem on "import": I'm not sure
which import function you are referring to. Directly opening the file on
the command line (like "dia herd.svg") is only supported for dia files.

Adding an image to a dia file, with herd.svg as image contents works for me.

Can you please elaborate about how we can reproduce the problem?

Thanks in advance!

Roland

#623724#18
Date:
2011-05-05 10:26:07 UTC
From:
To:
how to reproduce:

1. start dia
$ dia


2. in the menu of "Diagram1.dia" click
File // Open
i found out the bug depends on the filetype you select now:

Pixbuf svg  => works
Plain svg   => errormessage
Scalable Vector Graphics => broken import; picture looks strange

#623724#29
Date:
2011-12-30 12:09:00 UTC
From:
To:
Upstream claims this to be fixed in 0.98. So we'll check again, then.