]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/listbox.cpp
Update bug in wxListCtrl,
[wxWidgets.git] / src / mac / listbox.cpp
index 9d1220bc90afc1cefc3b4e3508156dbfdaca30b1..ae89e0bcab84e46b6af8bed6c3e8c37e3edbc1af 100644 (file)
 #include "wx/utils.h"
 #include "extldef.h"
 
-#if !USE_SHARED_LIBRARY
   IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
 
 BEGIN_EVENT_TABLE(wxListBox, wxControl)
        EVT_SIZE( wxListBox::OnSize ) 
 END_EVENT_TABLE()
-#endif
 
 #include <wx/mac/uma.h>
 
@@ -562,8 +560,8 @@ void wxListBox::MacDoClick()
        int n, count = GetSelections(aSelections);
        if ( count > 0 )
        {
-                 event.m_commandInt = aSelections[0] ;
-          if ( HasClientObjectData() )
+           n = aSelections[0];
+           if ( HasClientObjectData() )
               event.SetClientObject( GetClientObject(n) );
           else if ( HasClientUntypedData() )
               event.SetClientData( GetClientData(n) );