summaryrefslogtreecommitdiffstats
path: root/share/extensions/grid_cartesian.py
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2014-02-08 00:16:27 +0000
committerapenner <penner@vaxxine.com>2014-02-08 00:16:27 +0000
commit71cc176ac4cd1da4ef5ad3a5b50ddb8f71098695 (patch)
tree507af11892e47927ff87752320cc84d0ca9b4857 /share/extensions/grid_cartesian.py
parentFix for Bug #1275443 (Including picture results in crash). (diff)
downloadinkscape-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/grid_cartesian.py')
-rwxr-xr-xshare/extensions/grid_cartesian.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/share/extensions/grid_cartesian.py b/share/extensions/grid_cartesian.py
index 85716a6fd..23df0ff84 100755
--- a/share/extensions/grid_cartesian.py
+++ b/share/extensions/grid_cartesian.py
@@ -122,7 +122,17 @@ class Grid_Polar(inkex.Effect):
def effect(self):
-
+
+ self.options.border_th = self.unittouu(str(self.options.border_th) + 'px')
+ self.options.dx = self.unittouu(str(self.options.dx) + 'px')
+ self.options.x_divs_th = self.unittouu(str(self.options.x_divs_th) + 'px')
+ self.options.x_subdivs_th = self.unittouu(str(self.options.x_subdivs_th) + 'px')
+ self.options.x_subsubdivs_th = self.unittouu(str(self.options.x_subsubdivs_th) + 'px')
+ self.options.dy = self.unittouu(str(self.options.dy) + 'px')
+ self.options.y_divs_th = self.unittouu(str(self.options.y_divs_th) + 'px')
+ self.options.y_subdivs_th = self.unittouu(str(self.options.y_subdivs_th) + 'px')
+ self.options.y_subsubdivs_th = self.unittouu(str(self.options.y_subsubdivs_th) + 'px')
+
#find the pixel dimensions of the overall grid
ymax = self.options.dy * self.options.y_divs
xmax = self.options.dx * self.options.x_divs