Applied patch [ 705663 ] Fix capture mouse bug in wxGrid

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-03-24 21:00:11 +00:00
parent 82e3ab8724
commit 58a44689c3

View File

@@ -5347,15 +5347,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(),