Skip to content

Commit

Permalink
Merge pull request #561 from enthought/maint/fix-tree-insert-559
Browse files Browse the repository at this point in the history
Maint: Fix tree node insert
  • Loading branch information
corranwebster authored May 30, 2019
2 parents 76dbfbf + eadc945 commit a324afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traitsui/tree_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def append_child(self, object, child):
def insert_child(self, object, index, child):
""" Inserts a child into the object's children.
"""
children = self.get_children()
children = self.get_children(object)
children[index:index] = [child]

#-------------------------------------------------------------------------
Expand Down

0 comments on commit a324afc

Please sign in to comment.