X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c50f1fb9226d9260454ccb9c8a67d0be23c2827f..22d6efa851642c6a69174278fc50f712f41e2271:/src/gtk/statline.cpp diff --git a/src/gtk/statline.cpp b/src/gtk/statline.cpp index 98bb5f04b5..fda6826dc6 100644 --- a/src/gtk/statline.cpp +++ b/src/gtk/statline.cpp @@ -41,7 +41,12 @@ bool wxStaticLine::Create( wxWindow *parent, wxWindowID id, { m_needParent = TRUE; - PreCreation( parent, id, pos, size, style, name ); + if (!PreCreation( parent, pos, size ) || + !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name )) + { + wxFAIL_MSG( _T("wxStaticLine creation failed") ); + return FALSE; + } if ( IsVertical() ) m_widget = gtk_vseparator_new();