Fix build breaking typo in wxDataViewCtrl accessibility code

Dereference the pointer before casting it to unsigned int.
This commit is contained in:
Scott Furry 2016-12-19 19:13:53 +01:00 committed by Vadim Zeitlin
parent 30a71c39f5
commit 068e0f6ec4

View File

@ -6365,7 +6365,7 @@ wxAccStatus wxDataViewCtrlAccessible::GetFocus(int* childId, wxAccessible** chil
wxDataViewMainWindow* dvWnd = wxDynamicCast(dvCtrl->GetMainWindow(), wxDataViewMainWindow);
const unsigned int row = dvWnd->GetCurrentRow();
if ( row != (unsigned int)childId-1 )
if ( row != (unsigned int)*childId-1 )
{
*childId = row+1;
*child = NULL;