Fix bug while matching pattern in the definition of resource elements like task or POU instance
--- 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: