Skip to content

Commit

Permalink
GetNextChild: udpate the cookie
Browse files Browse the repository at this point in the history
Signed-off-by: Eran Ifrah <eran@codelite.org>
  • Loading branch information
eranif committed Nov 13, 2024
1 parent 4211080 commit 78f0c78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Plugin/wxDataViewTreeCtrl.cpp
Original file line number Diff line number Diff line change
@@ -123,6 +123,8 @@ wxTreeItemId wxTreeCtrlDataViewBase::GetNextChild(const wxTreeItemId& item, wxTr

auto child = to_tree_item(m_impl->GetStore()->GetNthChild(parent, next_index));
next_index++;
// Update the cookie
cookie = (wxTreeItemIdValue)next_index;
return child;
}

0 comments on commit 78f0c78

Please sign in to comment.