SearchResultPanel.py
changeset 581 c2d96ea9c14a
parent 576 3f2024f30553
child 714 131ea7f237b9
equal deleted inserted replaced
580:ad996deb920e 581:c2d96ea9c14a
   197                 for infos, start, end, text in results:
   197                 for infos, start, end, text in results:
   198                     if element_type == ITEM_DATATYPE:
   198                     if element_type == ITEM_DATATYPE:
   199                         child_name = GenerateName(infos[1:])
   199                         child_name = GenerateName(infos[1:])
   200                         child_type = element_type
   200                         child_type = element_type
   201                     else:
   201                     else:
   202                         child_type = infos[1]
   202                         if element_type == ITEM_RESOURCE:
       
   203                             child_type = element_type
       
   204                         else:
       
   205                             child_type = infos[1]
   203                         if child_type == "body":
   206                         if child_type == "body":
   204                             child_name = "body"
   207                             child_name = "body"
   205                             if element_type == ITEM_TRANSITION:
   208                             if element_type == ITEM_TRANSITION:
   206                                 child_type = self.ParentWindow.Controler.GetTransitionBodyType(words[1], words[2])
   209                                 child_type = self.ParentWindow.Controler.GetTransitionBodyType(words[1], words[2])
   207                             elif element_type == ITEM_ACTION:
   210                             elif element_type == ITEM_ACTION: