summaryrefslogtreecommitdiffstats
path: root/share/extensions/funcplot.py
diff options
context:
space:
mode:
authorAaron Spike <aaron@ekips.org>2007-08-19 22:58:25 +0000
committeracspike <acspike@users.sourceforge.net>2007-08-19 22:58:25 +0000
commit9ac2ad6458042d258fbe0607edacee324a1f7d0f (patch)
tree2fd44eb33afa3d529db2621a0855de9558261fa8 /share/extensions/funcplot.py
parentDisable the page selector when there's only one page (diff)
downloadinkscape-9ac2ad6458042d258fbe0607edacee324a1f7d0f.tar.gz
inkscape-9ac2ad6458042d258fbe0607edacee324a1f7d0f.zip
adjust function parameters for the now present proper quoting behavior; this fix may need to be pushed out into inkex, stripping double quotes off of all string parameters before handing them to the scripts
(bzr r3542)
Diffstat (limited to 'share/extensions/funcplot.py')
-rw-r--r--share/extensions/funcplot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/extensions/funcplot.py b/share/extensions/funcplot.py
index 482df634a..3a64e4e95 100644
--- a/share/extensions/funcplot.py
+++ b/share/extensions/funcplot.py
@@ -71,9 +71,9 @@ def drawfunction(xstart, xend, ybottom, ytop, samples, width, height, left, bott
# functions specified by the user
if fx != "":
- f = eval('lambda x: ' + fx)
+ f = eval('lambda x: ' + fx.strip('"'))
if fpx != "":
- fp = eval('lambda x: ' + fpx)
+ fp = eval('lambda x: ' + fpx.strip('"'))
# step is the distance between nodes on x
step = (xend - xstart) / (samples-1)