'Measure Path' extension fails if <svg> width, height use unit identifier
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Alvin Penner |
Bug Description
Affects trunk <lp:inkscape> and 0.91 <lp:inkscape/0.91.x>
Steps to reproduce:
1) launch inkscape with default (new) prefs, default new doc (locale: en_US)
2) draw a path (e.g. a straight line across the page)
3) measure the path with 'Extensions > Visualize Path > Measure Path'
(default settings)
Expected result:
Extension processes the selected path and adds the computed length as 'text-on-path' to the line.
Actual result:
Extension fails with an error:
Traceback (most recent call last):
File "measure.py", line 266, in <module>
e.affect()
File "/usr/share/
self.effect()
File "measure.py", line 186, in effect
factor = float(doc.
ValueError: invalid literal for float(): 210mm
The templates have been reworked on both trunk and 0.91.x and now use a unit identifier for the width, height attributes of the <svg> root element (e.g. the A4 page used in default templates are defined in mm).
Related branches
summary: |
- 'Measure Path' extension fails if svg width / height use unit identifier + 'Measure Path' extension fails if <svg> width, height use unit + identifier |
Changed in inkscape: | |
assignee: | nobody → Alvin Penner (apenner) |
milestone: | 0.91 → 0.92 |
tags: | added: backport-proposed |
tags: | removed: backport-proposed |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
fix committed to rev 13778