]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datavgen.cpp
Store menus titles in menus themselves in wxOSX.
[wxWidgets.git] / src / generic / datavgen.cpp
index df22e987ea674fd5dc218b2101a1c75ca134039a..a8bd2239a7cd6f6a98d97cee39beeeb5fd42d5cb 100644 (file)
@@ -3469,13 +3469,17 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event )
         xpos += c->GetWidth();
     }
     if (!col)
+    {
+        event.Skip();
         return;
+    }
 
     wxDataViewRenderer *cell = col->GetRenderer();
     unsigned int current = GetLineAt( y );
     if ((current >= GetRowCount()) || (x > GetEndOfLastCol()))
     {
         // Unselect all if below the last row ?
+        event.Skip();
         return;
     }