From ffdd3c9861e9fb1fc544435f2479b3e486194b33 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 2 Feb 2001 15:56:30 +0000 Subject: [PATCH] added missing GetEventHandler() (patch #103561) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 517fd8d5ea..8768d2316e 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -1410,12 +1410,12 @@ void wxGridCellEditorEvtHandler::OnKeyDown(wxKeyEvent& event) break; case WXK_TAB: - event.Skip( m_grid->ProcessEvent( event ) ); + event.Skip( m_grid->GetEventHandler()->ProcessEvent( event ) ); break; case WXK_NUMPAD_ENTER: case WXK_RETURN: - if (!m_grid->ProcessEvent(event)) + if ( !m_grid->GetEventHandler()->ProcessEvent(event) ) m_editor->HandleReturn(event); break; @@ -3143,12 +3143,12 @@ void wxGridRowLabelWindow::OnMouseEvent( wxMouseEvent& event ) // void wxGridRowLabelWindow::OnKeyDown( wxKeyEvent& event ) { - if ( !m_owner->ProcessEvent( event ) ) event.Skip(); + if ( !m_owner->GetEventHandler()->ProcessEvent( event ) ) event.Skip(); } void wxGridRowLabelWindow::OnKeyUp( wxKeyEvent& event ) { - if ( !m_owner->ProcessEvent( event ) ) event.Skip(); + if ( !m_owner->GetEventHandler()->ProcessEvent( event ) ) event.Skip(); } @@ -3202,12 +3202,12 @@ void wxGridColLabelWindow::OnMouseEvent( wxMouseEvent& event ) // void wxGridColLabelWindow::OnKeyDown( wxKeyEvent& event ) { - if ( !m_owner->ProcessEvent( event ) ) event.Skip(); + if ( !m_owner->GetEventHandler()->ProcessEvent( event ) ) event.Skip(); } void wxGridColLabelWindow::OnKeyUp( wxKeyEvent& event ) { - if ( !m_owner->ProcessEvent( event ) ) event.Skip(); + if ( !m_owner->GetEventHandler()->ProcessEvent( event ) ) event.Skip(); } @@ -3260,12 +3260,12 @@ void wxGridCornerLabelWindow::OnMouseEvent( wxMouseEvent& event ) // void wxGridCornerLabelWindow::OnKeyDown( wxKeyEvent& event ) { - if ( !m_owner->ProcessEvent( event ) ) event.Skip(); + if ( !m_owner->GetEventHandler()->ProcessEvent( event ) ) event.Skip(); } void wxGridCornerLabelWindow::OnKeyUp( wxKeyEvent& event ) { - if ( !m_owner->ProcessEvent( event ) ) event.Skip(); + if ( !m_owner->GetEventHandler()->ProcessEvent( event ) ) event.Skip(); } @@ -3334,12 +3334,12 @@ void wxGridWindow::OnMouseEvent( wxMouseEvent& event ) // void wxGridWindow::OnKeyDown( wxKeyEvent& event ) { - if ( !m_owner->ProcessEvent( event ) ) event.Skip(); + if ( !m_owner->GetEventHandler()->ProcessEvent( event ) ) event.Skip(); } void wxGridWindow::OnKeyUp( wxKeyEvent& event ) { - if ( !m_owner->ProcessEvent( event ) ) event.Skip(); + if ( !m_owner->GetEventHandler()->ProcessEvent( event ) ) event.Skip(); } void wxGridWindow::OnEraseBackground( wxEraseEvent& WXUNUSED(event) ) @@ -8305,7 +8305,7 @@ void wxGrid::DeselectRow( int row ) { if ( m_selection->IsInSelection(row, 0 ) ) m_selection->ToggleCellSelection( row, 0); - } + } else { int nCols = GetNumberCols(); -- 2.45.2