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:
@@ -5347,15 +5347,15 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
|
|||||||
{
|
{
|
||||||
if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL )
|
if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL )
|
||||||
{
|
{
|
||||||
|
if (m_winCapture)
|
||||||
|
{
|
||||||
|
if (m_winCapture->HasCapture()) m_winCapture->ReleaseMouse();
|
||||||
|
m_winCapture = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if ( m_selectingTopLeft != wxGridNoCellCoords &&
|
if ( m_selectingTopLeft != wxGridNoCellCoords &&
|
||||||
m_selectingBottomRight != wxGridNoCellCoords )
|
m_selectingBottomRight != wxGridNoCellCoords )
|
||||||
{
|
{
|
||||||
if (m_winCapture)
|
|
||||||
{
|
|
||||||
if (m_winCapture->HasCapture()) m_winCapture->ReleaseMouse();
|
|
||||||
m_winCapture = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( m_selection )
|
if ( m_selection )
|
||||||
{
|
{
|
||||||
m_selection->SelectBlock( m_selectingTopLeft.GetRow(),
|
m_selection->SelectBlock( m_selectingTopLeft.GetRow(),
|
||||||
|
Reference in New Issue
Block a user