X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06ea1f023e3f0b4318b3d44dcd15c304b7306025..789f8e6ad40488d2dd5f5f4d87e195d0f1e23422:/src/mac/listbox.cpp diff --git a/src/mac/listbox.cpp b/src/mac/listbox.cpp index 0cc15e774f..5240ef76be 100644 --- a/src/mac/listbox.cpp +++ b/src/mac/listbox.cpp @@ -202,6 +202,9 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { + if ( !wxListBoxBase::Create(parent, id, pos, size, style, validator, name) ) + return false; + m_noItems = 0 ; // this will be increased by our append command m_selected = 0; @@ -823,7 +826,7 @@ void wxListBox::OnSize( const wxSizeEvent &event) LCellSize( pt , (ListHandle)m_macList ) ; } -void wxListBox::MacHandleControlClick( WXWidget control , wxInt16 controlpart ) +void wxListBox::MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool WXUNUSED(mouseStillDown)) { Boolean wasDoubleClick = false ; long result ;