]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
wxString::begin and end added
[wxWidgets.git] / src / gtk1 / dialog.cpp
index f9914dbc047296661d9fa057245a63726afb7f95..57560172e68b1d18709f3f1a15bc7fa7e2b893b0 100644 (file)
@@ -393,11 +393,13 @@ void wxDialog::OnSize( wxSizeEvent &WXUNUSED(event) )
 {
     wxASSERT_MSG( (m_widget != NULL), _T("invalid dialog") );
 
+#if wxUSE_CONSTRAINTS
     if (GetAutoLayout())
     {
         Layout();
     }
     else
+#endif // wxUSE_CONSTRAINTS
     {
         /* no child: go out ! */
         if (!GetChildren().First()) return;