diff options
| author | Alvin Penner <penner@vaxxine.com> | 2014-02-08 00:16:27 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2014-02-08 00:16:27 +0000 |
| commit | 71cc176ac4cd1da4ef5ad3a5b50ddb8f71098695 (patch) | |
| tree | 507af11892e47927ff87752320cc84d0ca9b4857 /share/extensions/spirograph.py | |
| parent | Fix for Bug #1275443 (Including picture results in crash). (diff) | |
| download | inkscape-71cc176ac4cd1da4ef5ad3a5b50ddb8f71098695.tar.gz inkscape-71cc176ac4cd1da4ef5ad3a5b50ddb8f71098695.zip | |
Extensions->Render submenu. Scaling of input parameters into document units, Part 2 (Bug 1240455)
Fixed bugs:
- https://launchpad.net/bugs/1240455
(bzr r13007)
Diffstat (limited to 'share/extensions/spirograph.py')
| -rwxr-xr-x | share/extensions/spirograph.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/extensions/spirograph.py b/share/extensions/spirograph.py index cb9d1ac24..77a258d5f 100755 --- a/share/extensions/spirograph.py +++ b/share/extensions/spirograph.py @@ -47,6 +47,9 @@ class Spirograph(inkex.Effect): help="The quality of the calculated output") def effect(self): + self.options.primaryr = self.unittouu(str(self.options.primaryr) + 'px') + self.options.secondaryr = self.unittouu(str(self.options.secondaryr) + 'px') + self.options.penr = self.unittouu(str(self.options.penr) + 'px') if self.options.secondaryr == 0: return @@ -68,7 +71,7 @@ class Spirograph(inkex.Effect): rotation = - math.pi * self.options.rotation / 180; new = inkex.etree.Element(inkex.addNS('path','svg')) - s = { 'stroke': '#000000', 'fill': 'none' } + s = { 'stroke': '#000000', 'fill': 'none', 'stroke-width': str(self.unittouu('1px')) } new.set('style', simplestyle.formatStyle(s)) pathString = '' |
