From c44f6b165d62c7cbeb819bb78ddfcd1715a706e0 Mon Sep 17 00:00:00 2001 From: acspike Date: Sun, 19 Aug 2007 22:58:25 +0000 Subject: [PATCH] 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 --- share/extensions/funcplot.py | 4 ++-- 1 file 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) -- 2.30.2