]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 705663 ] Fix capture mouse bug in wxGrid
authorJulian Smart <julian@anthemion.co.uk>
Mon, 24 Mar 2003 21:00:11 +0000 (21:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 24 Mar 2003 21:00:11 +0000 (21:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 7a3e26851ce34fcbbed3e604eada0ed0ea779ccd..f60e2bced655fa141799fc2421fa8d87f5b66099 100644 (file)
@@ -5406,15 +5406,15 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
     {
         if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL )
         {
+            if (m_winCapture)
+            {
+                if (m_winCapture->HasCapture()) m_winCapture->ReleaseMouse();
+                m_winCapture = NULL;
+            }
+
             if ( m_selectingTopLeft != wxGridNoCellCoords &&
                  m_selectingBottomRight != wxGridNoCellCoords )
             {
-                if (m_winCapture)
-                {
-                    if (m_winCapture->HasCapture()) m_winCapture->ReleaseMouse();
-                    m_winCapture = NULL;
-                }
-
                 if ( m_selection )
                 {
                     m_selection->SelectBlock( m_selectingTopLeft.GetRow(),