SearchResultPanel.py
changeset 581 c2d96ea9c14a
parent 576 3f2024f30553
child 714 131ea7f237b9
--- a/SearchResultPanel.py	Mon Oct 24 02:00:34 2011 +0200
+++ b/SearchResultPanel.py	Mon Oct 24 02:03:42 2011 +0200
@@ -199,7 +199,10 @@
                         child_name = GenerateName(infos[1:])
                         child_type = element_type
                     else:
-                        child_type = infos[1]
+                        if element_type == ITEM_RESOURCE:
+                            child_type = element_type
+                        else:
+                            child_type = infos[1]
                         if child_type == "body":
                             child_name = "body"
                             if element_type == ITEM_TRANSITION: