]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/checklst_osx.cpp
fix MSVC warnings about possibly uninitialized variables; some reindentation
[wxWidgets.git] / src / osx / checklst_osx.cpp
index 574d9ecf83d4108c66390044a37c0886f24a8373..be06c9f289fc9ba2e7a969361bd1c3853b6f7a1f 100644 (file)
@@ -121,6 +121,7 @@ void wxCheckListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col ,
         
         wxCommandEvent event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, GetId() );
         event.SetInt( n );
+        event.SetString( GetString( n ) );
         event.SetEventObject( this );
         HandleWindowEvent( event );
     }
@@ -134,6 +135,8 @@ void wxCheckListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col ,
 
 void wxCheckListBox::OnItemInserted(unsigned int pos)
 {
+    wxListBox::OnItemInserted(pos);
+
     m_checks.Insert(false, pos );
 }
 
@@ -146,6 +149,8 @@ void wxCheckListBox::DoDeleteOneItem(unsigned int n)
 
 void wxCheckListBox::DoClear()
 {
+    wxListBox::DoClear();
+
     m_checks.Empty();
 }