From e3e4a884230d3989e152a7e58e20b250527c1dac Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 8 May 2018 23:57:53 +0200 Subject: [PATCH] Correct the return value of wxDataViewTreeCtrl::GetNthChild() Wrong pointer was used to initialize wxDataViewItem (apparently since always, i.e. this function could never have been used successfully...). Closes #18132. --- src/common/datavcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index d2d253ca2d..4418351686 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -2619,7 +2619,7 @@ wxDataViewItem wxDataViewTreeStore::GetNthChild( const wxDataViewItem& parent, u wxDataViewTreeStoreNode* const node = parent_node->GetChildren()[pos]; if (node) - return wxDataViewItem(node->GetData()); + return node->GetItem(); return wxDataViewItem(0); }