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:
Gilles Depeyrot
2001-01-26 20:59:41 +00:00
parent 6113a16ab3
commit b81abd0d1d
2 changed files with 8 additions and 2 deletions

View File

@@ -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 ) ;

View File

@@ -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 ) ;