diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-10-25 13:51:20 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-10-25 13:51:20 +0000 |
| commit | 9cc90961f5f051e320bb02c626b0eebd3bf847cf (patch) | |
| tree | 644f6afa11a532c15552bb60efd6b5e2b7e0d4ff /share/extensions/render_gears.py | |
| parent | Fix for Bug 1242927 (minor EMF import issues) (diff) | |
| download | inkscape-9cc90961f5f051e320bb02c626b0eebd3bf847cf.tar.gz inkscape-9cc90961f5f051e320bb02c626b0eebd3bf847cf.zip | |
fix unit handling of all python extensions. did not test with all extensions
(bzr r12722)
Diffstat (limited to 'share/extensions/render_gears.py')
| -rw-r--r-- | share/extensions/render_gears.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/extensions/render_gears.py b/share/extensions/render_gears.py index a1b3ee666..5201e553b 100644 --- a/share/extensions/render_gears.py +++ b/share/extensions/render_gears.py @@ -67,9 +67,9 @@ class Gears(inkex.Effect): def effect(self): teeth = self.options.teeth - pitch = inkex.unittouu( str(self.options.pitch) + self.options.unit) + pitch = self.unittouu( str(self.options.pitch) + self.options.unit) angle = self.options.angle # Angle of tangent to tooth at circular pitch wrt radial line. - centerdiameter = inkex.unittouu( str(self.options.centerdiameter) + self.options.unit) + centerdiameter = self.unittouu( str(self.options.centerdiameter) + self.options.unit) # print >>sys.stderr, "Teeth: %s\n" % teeth @@ -182,4 +182,5 @@ if __name__ == '__main__': e.affect() + # vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99 |
