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:
@@ -2102,6 +2102,7 @@ void wxGridWindow::OnFocus(wxFocusEvent& event)
|
|||||||
m_owner->GetGridCursorCol());
|
m_owner->GetGridCursorCol());
|
||||||
const wxRect cursor =
|
const wxRect cursor =
|
||||||
m_owner->BlockToDeviceRect(cursorCoords, cursorCoords);
|
m_owner->BlockToDeviceRect(cursorCoords, cursorCoords);
|
||||||
|
if (cursor != wxGridNoCellRect)
|
||||||
Refresh(true, &cursor);
|
Refresh(true, &cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user