correction to maintain data array in synch with string array
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -173,9 +173,12 @@ int wxListBox::DoAppend(const wxString& item)
|
||||
if( wxApp::s_macDefaultEncodingIsPC )
|
||||
{
|
||||
m_stringArray.Add( wxMacMakeMacStringFromPC( item ) ) ;
|
||||
m_dataArray.Add( NULL );
|
||||
}
|
||||
else
|
||||
else {
|
||||
m_stringArray.Add( item ) ;
|
||||
m_dataArray.Add( NULL );
|
||||
}
|
||||
m_noItems ++;
|
||||
MacAppend( item ) ;
|
||||
|
||||
|
@@ -173,9 +173,12 @@ int wxListBox::DoAppend(const wxString& item)
|
||||
if( wxApp::s_macDefaultEncodingIsPC )
|
||||
{
|
||||
m_stringArray.Add( wxMacMakeMacStringFromPC( item ) ) ;
|
||||
m_dataArray.Add( NULL );
|
||||
}
|
||||
else
|
||||
else {
|
||||
m_stringArray.Add( item ) ;
|
||||
m_dataArray.Add( NULL );
|
||||
}
|
||||
m_noItems ++;
|
||||
MacAppend( item ) ;
|
||||
|
||||
|
Reference in New Issue
Block a user