From: acspike Date: Thu, 21 Jun 2007 11:49:24 +0000 (+0000) Subject: Fix function plotter for the most common case where there are no transforms applied... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1b9ce9d489d575ddfc946d0a3024ed64021bfd2c;p=inkscape.git Fix function plotter for the most common case where there are no transforms applied to the rect objects. Thanks Tav for catching this. --- diff --git a/share/extensions/funcplot.py b/share/extensions/funcplot.py index f0e84d6f6..e478a4b30 100644 --- a/share/extensions/funcplot.py +++ b/share/extensions/funcplot.py @@ -184,12 +184,12 @@ class FuncPlot(inkex.Effect): #copy attributes of rect s = node.get('style') - newpath.set('style', s) - try: - t = node.get('transform') + if s: + newpath.set('style', s) + + t = node.get('transform') + if t: newpath.set('transform', t) - except AttributeError: - pass # top and bottom where exchanhged newpath.set('d', simplepath.formatPath(