]> 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 c3b2c3fd961a68cd060bdaaf194b3a7300267f30..2d27635bd9bf90e2e60dd01453374f7d439ccb18 100644 (file)
@@ -52,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
@@ -145,6 +145,11 @@ void wxSashLayoutWindow::OnCalculateLayout(wxCalculateLayoutEvent& event)
             clientSize.height -= thisRect.height;
             break;
         }
+        case wxLAYOUT_NONE:
+        {
+           break;
+        }
+
     }
 
     if ((flags & wxLAYOUT_QUERY) == 0)