Fixed problem with label resize cursor not resetting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Bedward
2000-02-08 04:33:03 +00:00
parent fa1993cce5
commit b93a2fe65a

View File

@@ -1655,14 +1655,12 @@ void wxGrid::ProcessRowLabelMouseEvent( wxMouseEvent& event )
} }
} }
else else
{
if ( m_cursorMode != WXGRID_CURSOR_SELECT_CELL )
{ {
m_cursorMode = WXGRID_CURSOR_SELECT_CELL; m_cursorMode = WXGRID_CURSOR_SELECT_CELL;
if ( m_rowLabelWin->GetCursor() == m_rowResizeCursor )
m_rowLabelWin->SetCursor( *wxSTANDARD_CURSOR ); m_rowLabelWin->SetCursor( *wxSTANDARD_CURSOR );
} }
} }
}
} }
@@ -1844,14 +1842,12 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event )
} }
} }
else else
{
if ( m_cursorMode != WXGRID_CURSOR_SELECT_CELL )
{ {
m_cursorMode = WXGRID_CURSOR_SELECT_CELL; m_cursorMode = WXGRID_CURSOR_SELECT_CELL;
if ( m_colLabelWin->GetCursor() == m_colResizeCursor )
m_colLabelWin->SetCursor( *wxSTANDARD_CURSOR ); m_colLabelWin->SetCursor( *wxSTANDARD_CURSOR );
} }
} }
}
} }