diff options
| author | Aaron Spike <aaron@ekips.org> | 2007-06-21 11:49:24 +0000 |
|---|---|---|
| committer | acspike <acspike@users.sourceforge.net> | 2007-06-21 11:49:24 +0000 |
| commit | 48898ef37c72668db8e4c6ac13ca01ad82477d0d (patch) | |
| tree | bdc2068f15680febe006e5721598b1f6600d9116 /share/extensions/funcplot.py | |
| parent | Handle the case of gnome_vfs_init failing. (Fixes Debian bug http://bugs.deb... (diff) | |
| download | inkscape-48898ef37c72668db8e4c6ac13ca01ad82477d0d.tar.gz inkscape-48898ef37c72668db8e4c6ac13ca01ad82477d0d.zip | |
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)
Diffstat (limited to 'share/extensions/funcplot.py')
| -rw-r--r-- | share/extensions/funcplot.py | 10 |
1 files 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(
|
