# HG changeset patch # User laurent # Date 1319414622 -7200 # Node ID c2d96ea9c14a8ac2ea8dfdb4a2d6499dd55859e6 # Parent ad996deb920eaed171067b48380e746407c7d037 Fix bug while matching pattern in the definition of resource elements like task or POU instance diff -r ad996deb920e -r c2d96ea9c14a 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: