Perspective fails with non-Inkscape SVG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
When opening an SVG file that hasn't been created by Inkscape, there may no "width" and "height" attributes exist in the svg tag. The "Modify Path -> Perspective" script expects these attributes to exist and fails with the error message below if they don't. Adding these attributes manually solves the issue.
```
Traceback (most recent call last):
File "perspective.py", line 153, in <module>
e.affect()
File "/Applications/
self.
File "/Applications/
x = self.unittouu( xattr[0] + 'px' )
File "/Applications/
return retval * (self._
File "/Applications/
p = param.match(
TypeError: expected string or buffer
```
thank you for taking the time to issue a report.
could you indicate which OS, and which version of Inkscape? (see Help->About)
using Windows 10, Inkscape 0.92.1 r15371, I am not able to reproduce the problem, using the attached file.