]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/checklst.cpp
code changed along msw lines
[wxWidgets.git] / src / mac / checklst.cpp
index bba473b6069bfee3dc3377d1cb5f143872cf51c9..89123057f040845a079a1223a74d999abaa0c990 100644 (file)
@@ -271,7 +271,7 @@ bool wxCheckListBox::Create(wxWindow *parent,
     }
     else
     {
-        options = lOnlyOne ;
+        options = (OptionBits) lOnlyOne ;
     }
     SetListSelectionFlags((ListHandle)m_macList, options);
     
@@ -376,7 +376,7 @@ END_EVENT_TABLE()
 
 void wxCheckListBox::OnChar(wxKeyEvent& event)
 {
-  if ( event.KeyCode() == WXK_SPACE )
+  if ( event.GetKeyCode() == WXK_SPACE )
   {
     int index = GetSelection() ;
     if ( index >= 0 )