X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dfc3d7e025e919d9cf0d2e59d3c74bfab0b07e55..2bc07607fcd675b564bbf8fc6cb83010963dbf95:/src/gtk1/dialog.cpp diff --git a/src/gtk1/dialog.cpp b/src/gtk1/dialog.cpp index f9914dbc04..57560172e6 100644 --- a/src/gtk1/dialog.cpp +++ b/src/gtk1/dialog.cpp @@ -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;