Fix bug while matching pattern in the definition of resource elements like task or POU instance
authorlaurent
Mon, 24 Oct 2011 02:03:42 +0200
changeset 581 c2d96ea9c14a
parent 580 ad996deb920e
child 582 aa41547baa2a
Fix bug while matching pattern in the definition of resource elements like task or POU instance
SearchResultPanel.py
--- 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: