X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/463c1fa1a916b1a262023601f3913fb12c4bcc8f..c19a8a9a7187281b757808e651358198352b8f11:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 9dc17c0291..694fac6cdb 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1197,7 +1197,7 @@ void wxWindow::PreCreation( wxWindow *parent, wxWindowID id, m_eventHandler = this; - m_windowId = id; + m_windowId = id == -1 ? wxNewId() : id; m_sizeSet = FALSE; @@ -1689,7 +1689,7 @@ void wxWindow::SetSizeHints( int minW, int minH, int maxW, int maxH, int WXUNUSE void wxWindow::OnSize( wxSizeEvent &WXUNUSED(event) ) { - if (GetAutoLayout()) Layout(); +// if (GetAutoLayout()) Layout(); } bool wxWindow::Show( bool show )