From 48898ef37c72668db8e4c6ac13ca01ad82477d0d Mon Sep 17 00:00:00 2001 From: Aaron Spike Date: Thu, 21 Jun 2007 11:49:24 +0000 Subject: Fix function plotter for the most common case where there are no transforms applied to the rect objects. Thanks Tav for catching this. (bzr r3083) --- share/extensions/funcplot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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( -- cgit v1.2.3