X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6d7030871f1376e727902c93f5537165a305e08..dcf40a56e7b09fc5472edc1d4471e7954c0da40d:/src/generic/laywin.cpp?ds=sidebyside diff --git a/src/generic/laywin.cpp b/src/generic/laywin.cpp index 1f2094ed20..2d27635bd9 100644 --- a/src/generic/laywin.cpp +++ b/src/generic/laywin.cpp @@ -12,6 +12,10 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#ifdef __GNUG__ +#pragma implementation "laywin.h" +#endif + // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -48,7 +52,7 @@ wxSashLayoutWindow::wxSashLayoutWindow(wxWindow *parent, wxWindowID id, const wx // dimensions. void wxSashLayoutWindow::OnQueryLayoutInfo(wxQueryLayoutInfoEvent& event) { - int flags = event.GetFlags(); + // int flags = event.GetFlags(); int requestedLength = event.GetRequestedLength(); // This code won't be in the final thing, it's just so we don't have to give it @@ -141,6 +145,11 @@ void wxSashLayoutWindow::OnCalculateLayout(wxCalculateLayoutEvent& event) clientSize.height -= thisRect.height; break; } + case wxLAYOUT_NONE: + { + break; + } + } if ((flags & wxLAYOUT_QUERY) == 0)