Code

Fix function plotter for the most common case where there are no transforms applied...
authoracspike <acspike@users.sourceforge.net>
Thu, 21 Jun 2007 11:49:24 +0000 (11:49 +0000)
committeracspike <acspike@users.sourceforge.net>
Thu, 21 Jun 2007 11:49:24 +0000 (11:49 +0000)
share/extensions/funcplot.py

index f0e84d6f68f87fe25bd3d34985f50c2ec2e49664..e478a4b304ccd9b90589cfc7d6d27c386b9e8eb2 100644 (file)
@@ -184,12 +184,12 @@ class FuncPlot(inkex.Effect):
 \r
                 #copy attributes of rect\r
                 s = node.get('style')\r
-                newpath.set('style', s)\r
-                try:\r
-                    t = node.get('transform')\r
+                if s:\r
+                    newpath.set('style', s)\r
+                \r
+                t = node.get('transform')\r
+                if t:\r
                     newpath.set('transform', t)\r
-                except AttributeError:\r
-                    pass\r
                     \r
                 # top and bottom where exchanhged\r
                 newpath.set('d', simplepath.formatPath(\r