X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9d5648a95b7a49c522597ddd194e454115757d5..da3f3e049a3bcd9db16d73dd83c007e12f6c95e1:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index ab35ae0f20..1fe395f33c 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2790,10 +2790,8 @@ bool wxWindowGTK::PreCreation( wxWindowGTK *parent, const wxPoint &pos, const w { wxCHECK_MSG( !m_needParent || parent, FALSE, wxT("Need complete parent.") ); - // This turns -1 into 30 so that a minimal window is - // visible even although -1,-1 has been given as the - // size of the window. the same trick is used in other - // ports and should make debugging easier. + // Use either the given size, or the default if -1 is given. + // See wxWindowBase for these functions. m_width = WidthDefault(size.x) ; m_height = HeightDefault(size.y);