]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/listbox.cpp
added missing return type (implicit int no longer accepted by compilers)
[wxWidgets.git] / src / mac / listbox.cpp
index 6564af7b7777ee1a33213e0a7cea0433eb16561a..17efb46fabf84aa26f483b5b0ad704777b4029c5 100644 (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 ) ;