getposinlayer fails if height attribute is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Aurium |
Bug Description
Inkscape 0.91 on Gentoo Linux.
When loading an SVG file which has no root node "height" attribute, then all inkex derived extensions fail in getposinlayer.
Instructions to reproduce:
1) Open Inkscape
2) Save new SVG file
3) Open file with text editor, remove <svg height="..."> attribute.
4) Load into Inkscape again
5) Run any extension, for example draw a path and do "Extensions > Modify Path > Add Nodes..."
Result:
Traceback (most recent call last):
File "addnodes.py", line 113, in <module>
e.affect()
File "/usr/share/
self.
File "/usr/share/
doc_height = self.unittouu(
File "/usr/share/
p = param.match(string)
TypeError: expected string or buffer
Related branches
tags: | added: extensions-plugins |
tags: | added: backport-proposed |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
On OS X 10.7.5:
- not reproduced with Inkscape 0.48.5
- reproduced with 0.91 r13725 and 0.91+devel r14192