long cookie;
wxTreeItemId childLast,
- child = GetFirstChild(last, cookie);
+ child = GetFirstChild(item, cookie);
while ( child.IsOk() )
{
childLast = child;
- child = GetNextChild(last, cookie);
+ child = GetNextChild(item, cookie);
}
return childLast;