Code

Fix for GIMP palette export: check that the node has a hasAttributes() method before...
authorsasilver <sasilver@users.sourceforge.net>
Sun, 21 Sep 2008 15:10:19 +0000 (15:10 +0000)
committersasilver <sasilver@users.sourceforge.net>
Sun, 21 Sep 2008 15:10:19 +0000 (15:10 +0000)
share/extensions/export_gimp_palette.py

index 51b9a950d4d0b45d183701d5d7223042b7d51a3a..f1b4086c01ae41478360038ff958fdbbc430faa3 100644 (file)
@@ -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)