diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index e2e3371947..b7d807f08e 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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;