Skip to content

Commit

Permalink
avoid passing invalid rect to Refresh(), closes #16819
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@78431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
  • Loading branch information
Paul Cornett committed Feb 1, 2015
1 parent e268d56 commit d988a94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generic/grid.cpp
Expand Up @@ -2114,7 +2114,8 @@ void wxGridWindow::OnFocus(wxFocusEvent& event)
m_owner->GetGridCursorCol());
const wxRect cursor =
m_owner->BlockToDeviceRect(cursorCoords, cursorCoords);
Refresh(true, &cursor);
if (cursor != wxGridNoCellRect)
Refresh(true, &cursor);
}

if ( !m_owner->GetEventHandler()->ProcessEvent( event ) )
Expand Down

0 comments on commit d988a94

Please sign in to comment.