From 9ac2ad6458042d258fbe0607edacee324a1f7d0f Mon Sep 17 00:00:00 2001 From: Aaron Spike Date: Sun, 19 Aug 2007 22:58:25 +0000 Subject: 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) --- share/extensions/funcplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/extensions/funcplot.py') 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) -- cgit v1.2.3