From 068e0f6ec478ca397a1f00e64fe97c518b814c9c Mon Sep 17 00:00:00 2001 From: Scott Furry Date: Mon, 19 Dec 2016 19:13:53 +0100 Subject: [PATCH] Fix build breaking typo in wxDataViewCtrl accessibility code Dereference the pointer before casting it to unsigned int. --- src/generic/datavgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;