]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/splitter.cpp
fix bug introduced in last commit, contents not scrolling when selecting treectrl...
[wxWidgets.git] / src / generic / splitter.cpp
index d0ac066eee8714ce418735b1d8dfe81cc8a60fbd..257939be07dcf339cf56b746e31424d89574087d 100644 (file)
@@ -211,8 +211,11 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
     int x = (int)event.GetX(),
         y = (int)event.GetY();
 
-    if (GetWindowStyle() & wxSP_NOSASH)
+    if ( GetWindowStyle() & wxSP_NOSASH )
+    {
+        event.Skip();
         return;
+    }
 
     // with wxSP_LIVE_UPDATE style the splitter windows are always resized
     // following the mouse movement while it drags the sash, without it we only
@@ -396,6 +399,10 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
     {
         OnDoubleClickSash(x, y);
     }
+    else
+    {
+        event.Skip();
+    }
 }
 
 void wxSplitterWindow::OnSize(wxSizeEvent& event)