Skip to content

Commit

Permalink
Pass correct arguement
Browse files Browse the repository at this point in the history
  • Loading branch information
tmreay authored and corranwebster committed May 30, 2019
1 parent f4e5f88 commit eadc945
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 eadc945

Please sign in to comment.