]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
fixed bug in FindAbsoluteValidPath() which returned cwd instead of empty string if...
[wxWidgets.git] / src / generic / grid.cpp
index c68571a1a2d3362a16fd7730884a832b2727b051..ea0184e2d0a67b0c9215bfe343d223f4b723ed03 100644 (file)
@@ -5543,11 +5543,17 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
 
         if ( XToEdgeOfCol(x) < 0  &&  YToEdgeOfRow(y) < 0 )
         {
-            SendEvent( wxEVT_GRID_CELL_LEFT_DCLICK,
-                       coords.GetRow(),
-                       coords.GetCol(),
-                       event );
+            if ( !SendEvent( wxEVT_GRID_CELL_LEFT_DCLICK,
+                             coords.GetRow(),
+                             coords.GetCol(),
+                             event ) )
+            {
+                // we want double click to select a cell and start editing
+                // (i.e. to behave in same way as sequence of two slow clicks):
+                m_waitForSlowClick = true;
+            }
         }
+
     }