From 1b9ce9d489d575ddfc946d0a3024ed64021bfd2c Mon Sep 17 00:00:00 2001 From: acspike Date: Thu, 21 Jun 2007 11:49:24 +0000 Subject: [PATCH] Fix function plotter for the most common case where there are no transforms applied to the rect objects. Thanks Tav for catching this. --- 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( -- 2.30.2