avoid passing invalid rect to Refresh(), closes #16819

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2015-02-01 18:06:06 +00:00
parent eeead5ff6d
commit ecd32f0583

View File

@ -2102,7 +2102,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 ) )