]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/lboxcmn.cpp
made SetFirstItem() work again (patch 1445170)
[wxWidgets.git] / src / common / lboxcmn.cpp
index 26bc0951884dddc774ed405fe06a99f1a8b18f58..3943d96c4a2aabf4d1bd414388ff9e3e346fb486 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "listboxbase.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -118,7 +114,7 @@ void wxListBoxBase::DeselectAll(int itemToLeaveSelected)
 
 void wxListBoxBase::Command(wxCommandEvent& event)
 {
-    SetSelection(event.m_commandInt, event.m_extraLong != 0);
+    SetSelection(event.GetInt(), event.GetExtraLong() != 0);
     (void)ProcessEvent(event);
 }