]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
Fixed problem with mouse events getting sent to wrong
[wxWidgets.git] / src / generic / grid.cpp
index 80abb681cbf4c33779090f3b560170c1a2922b6e..c8e79066cdea648267d3ec661c80add202ffaf19 100644 (file)
@@ -1965,6 +1965,12 @@ void wxGrid::OnGridScroll( wxScrollEvent& ev )
 
 void wxGrid::SelectCell( const wxGridCellCoords& coords )
 {
+    if ( SendEvent( EVT_GRID_SELECT_CELL, coords.GetRow(), coords.GetCol() ) )
+    {
+        // the event has been intercepted - do nothing
+        return;
+    }
+
     wxClientDC dc( this );
 
     if ( m_currentCellCoords != wxGridNoCellCoords )