X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..21870a5d8d45db30c7c74936137ad71d3fc31d3c:/src/mac/checklst.cpp?ds=sidebyside diff --git a/src/mac/checklst.cpp b/src/mac/checklst.cpp index c50773b137..ee04357b8f 100644 --- a/src/mac/checklst.cpp +++ b/src/mac/checklst.cpp @@ -183,6 +183,10 @@ bool wxCheckListBox::Create(wxWindow *parent, const wxValidator& validator, const wxString &name) { + if ( !wxCheckListBoxBase::Create(parent, id, pos, size, + n, choices, style, validator, name) ) + return false; + m_noItems = 0 ; // this will be increased by our append command m_selected = 0; @@ -211,7 +215,7 @@ bool wxCheckListBox::Create(wxWindow *parent, Rect bounds ; Str255 title ; - MacPreControlCreate( parent , id , "" , pos , size ,style, validator , name , &bounds , title ) ; + MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, validator , name , &bounds , title ) ; ListDefSpec listDef; listDef.defType = kListDefUserProcType;