]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/listbox.cpp
wxMac completed so far, generic listctrl extension
[wxWidgets.git] / src / mac / listbox.cpp
index 9d1220bc90afc1cefc3b4e3508156dbfdaca30b1..19b16e5fe79502249bd82cb45877222d63b6160f 100644 (file)
@@ -562,8 +562,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) );