diff options
| author | Stephen Silver <sasilver@yahoo.com> | 2008-09-21 15:10:19 +0000 |
|---|---|---|
| committer | sasilver <sasilver@users.sourceforge.net> | 2008-09-21 15:10:19 +0000 |
| commit | 5bb8b7687813837c18c959b7c2bcedfb7a989890 (patch) | |
| tree | dbcd1bfa8281520512756b498c1b645d3de929d3 /share/extensions | |
| parent | Const correctness (diff) | |
| download | inkscape-5bb8b7687813837c18c959b7c2bcedfb7a989890.tar.gz inkscape-5bb8b7687813837c18c959b7c2bcedfb7a989890.zip | |
Fix for GIMP palette export: check that the node has a hasAttributes() method before calling it, otherwise it throws an exception.
(bzr r6861)
Diffstat (limited to 'share/extensions')
| -rw-r--r-- | share/extensions/export_gimp_palette.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/extensions/export_gimp_palette.py b/share/extensions/export_gimp_palette.py index 51b9a950d..f1b4086c0 100644 --- a/share/extensions/export_gimp_palette.py +++ b/share/extensions/export_gimp_palette.py @@ -24,7 +24,7 @@ def walk(node): walk(child) def checkStyle(node): - if node.hasAttributes(): + if hasattr(node,"hasAttributes") and node.hasAttributes(): sa=node.getAttribute('style') if sa!='': styles=simplestyle.parseStyle(sa) |
