X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d23a4bf410a7988864899b39fafaec8b3034f10..c8c000ef520759e4336a47d4a8852815ef3290a4:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index fdc5f6eb5e..07c354e4c4 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -58,12 +58,7 @@ bool wxStaticBox::Create( wxWindow *parent, return FALSE; } - m_isStaticBox = TRUE; - - if (label.empty()) - m_widget = gtk_frame_new( (char*) NULL ); - else - m_widget = gtk_frame_new( m_label.mbc_str() ); + m_widget = gtk_frame_new(m_label.empty() ? (char *)NULL : m_label.mbc_str()); m_parent->DoAddChild( this );