Extension/Guides creator: Render fails

Bug #1318532 reported by Masato HASHIMOTO
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Alvin Penner

Bug Description

Guides creator fails to render due to the following error:
---
Traceback (most recent call last):
  File "guides_creator.py", line 494, in <module>
    effect.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 261, in affect
    self.effect()
  File "guides_creator.py", line 300, in effect
    width = float(svg.get('width'))
ValueError: invalid literal for float(): 210mm
---

Using unittouu forgotten.
share/extensions/guides_creator.py
300: width = float(svg.get('width'))
301: height = float(svg.get('height'))

Version:
trunk-r13358

Build & platform:
Build 2014-05-12 on ArchLinux

su_v (suv-lp)
tags: added: extensions-plugins regression units
Changed in inkscape:
milestone: none → 0.91
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48+devel r13358 on OS X 10.7.5:
1) launch current trunk with default prefs, new document based on default (non-localized) template
2) open 'Document Properties'
3) change 'Units' (for 'Custom size') to 'mm'
4) apply 'Guides Creator' (default settings)

-> extension fails when attempting to retrieve page width and height with a custom unit.

Changed in inkscape:
importance: Undecided → Medium
milestone: 0.91 → none
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

thanks, I'll look into it...

Revision history for this message
Alvin Penner (apenner) wrote :

fix committed to rev 13370

Changed in inkscape:
status: Confirmed → Fix Released
su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.