From: acspike Date: Sun, 19 Aug 2007 22:58:25 +0000 (+0000) Subject: adjust function parameters for the now present proper quoting behavior; this fix... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c44f6b165d62c7cbeb819bb78ddfcd1715a706e0;p=inkscape.git 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 --- 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)