X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..cd318cd31b8fd9876af7ba5f4878b90f446bd0f5:/src/mac/statlmac.cpp diff --git a/src/mac/statlmac.cpp b/src/mac/statlmac.cpp index dc00dcca0f..a7a116ba57 100644 --- a/src/mac/statlmac.cpp +++ b/src/mac/statlmac.cpp @@ -49,10 +49,14 @@ bool wxStaticLine::Create( wxWindow *parent, long style, const wxString &name) { + if ( !wxStaticLineBase::Create(parent, id, pos, size, + style, wxDefaultValidator, name) ) + return false; + Rect bounds ; Str255 title ; - MacPreControlCreate( parent , id , "" , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ; + MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ; m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1, kControlSeparatorLineProc , (long) this ) ;