Interpolate extension fails if end path has no 'stroke-width' attribute (0.91, 0.92)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
su_v | ||
0.92.x |
Fix Released
|
Medium
|
su_v |
Bug Description
Interpolating style with 'Extensions > Generate from path > Interpolate' fails if the end path has no 'stroke-width' property defined (this style property is for example (correctly) removed when the stoke style set to 'Unset' (the '?' button) in the Fill and Stroke dialog).
The error reproduces with Inkscape >= 0.91 (older versions do not fail).
Steps to reproduce:
1) launch inkscape (0.91 or 0.92)
2) open attached file (choose 'Ignore' for dpi change in 0.92)
3) select all (Ctrl+A)
4) open 'Extensions > Generate from path > Interpolate'
5) check '[x] Interpolate style'
6) uncheck '[ ] Use Z-order' (if checked, 0.92 only)
7) click 'Live preview' or 'Apply'
Note (off-topic): without relying on the Z-order of the selected objects, the extension will reverse the selection order each time live-preview is toggled off and on again, which can cause the impression that the reported issue does not reproduce (when with switched order the end path is the one with the stroke-width defined).
Traceback with attached file using Inkscape 0.91:
Traceback (most recent call last):
File "interp.py", line 320, in <module>
e.affect()
File "/Users/
self.effect()
File "interp.py", line 143, in effect
basestyle[
File "interp.py", line 109, in tweenstyleunit
ep = self.unittouu(
KeyError: 'stroke-width'
Likely related to the changes in rev 13030:
https:/
Reproduced with Inkscape 0.91 r13725 and Inkscape 0.92 r15299 on OS X 10.7.5.
=====
Originally reported on the user mailing list:
https:/
description: | updated |
description: | updated |
Changed in inkscape: | |
milestone: | 0.92.1 → 0.93 |
tags: | removed: backport-proposed |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Attaching proposal (minimal diff) to provide fallback value for 'stroke-width' ("1px") [1].
--- /www.w3. org/TR/ SVG11/painting. html#StrokeWidt hProperty
[1] https:/