Fix setting client data when adding items to a sorted wxListBox, broken in r74317
closes #16290 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,9 +122,10 @@ void ListBoxTestCase::Sort()
|
||||
CPPUNIT_ASSERT_EQUAL("aab", m_list->GetString(4));
|
||||
CPPUNIT_ASSERT_EQUAL("aba", m_list->GetString(5));
|
||||
|
||||
m_list->Append("a");
|
||||
m_list->Append("a", wxUIntToPtr(1));
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL("a", m_list->GetString(0));
|
||||
CPPUNIT_ASSERT_EQUAL(wxUIntToPtr(1), m_list->GetClientData(0));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user