]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/msgdlgg.cpp
attributes inheritance fix; apply style to both m_wxwindow and m_widget (patch 984858)
[wxWidgets.git] / src / generic / msgdlgg.cpp
index 37e5a23f1ea416f28bfe4096ca51ef824035bd89..d8f1bf552477d6459a6ff780bfae91703e359308 100644 (file)
@@ -111,8 +111,10 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent,
 
     topsizer->Add( icon_text, 1, wxCENTER | wxLEFT|wxRIGHT|wxTOP, 10 );
 
+#if wxUSE_STATLINE
     // 3) static line
     topsizer->Add( new wxStaticLine( this, wxID_ANY ), 0, wxEXPAND | wxLEFT|wxRIGHT|wxTOP, 10 );
+#endif // wxUSE_STATLINE
 
     // 4) buttons
     topsizer->Add( CreateButtonSizer( style & (wxOK|wxCANCEL|wxYES_NO|wxYES_DEFAULT|wxNO_DEFAULT) ),