]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/checklst_osx.cpp
Flush output stream in wxMessageOutputStderr::Output() to avoid losing any output...
[wxWidgets.git] / src / osx / checklst_osx.cpp
index 1c3a1d581513613ab32be4d01e3297bae2240d18..c177a21b724b98ee758a0a3e574e90a93f79d402 100644 (file)
@@ -108,7 +108,7 @@ void wxCheckListBox::Check(unsigned int n, bool check)
 void wxCheckListBox::GetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value )
 {
     if ( col == m_checkColumn )
-        value.Set( IsChecked( n ) );
+        value.Check( IsChecked( n ) );
     else
         wxListBox::GetValueCallback( n, col, value );
 }
@@ -117,7 +117,7 @@ void wxCheckListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col ,
 {
     if ( col == m_checkColumn )
     {
-        Check( n, value.GetIntValue() != 0 );
+        Check( n, value.IsChecked() );
         
         wxCommandEvent event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, GetId() );
         event.SetInt( n );