return NULL from FindById() if the tool wasn't found (bug 508399)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -318,6 +318,8 @@ wxToolBarToolBase *wxToolBarBase::FindById(int id) const
|
|||||||
// found
|
// found
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tool = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return tool;
|
return tool;
|
||||||
|
|||||||
Reference in New Issue
Block a user