]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/laywin.cpp
wxListBox::FindString(): it's not an error if the string is not found, so
[wxWidgets.git] / src / generic / laywin.cpp
index 1f2094ed20f186a64484c91db38ab6a622d9e0e0..2d27635bd9bf90e2e60dd01453374f7d439ccb18 100644 (file)
 // 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)