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:
parent
7183fd726e
commit
d973988695
@ -318,6 +318,8 @@ wxToolBarToolBase *wxToolBarBase::FindById(int id) const
|
||||
// found
|
||||
break;
|
||||
}
|
||||
|
||||
tool = NULL;
|
||||
}
|
||||
|
||||
return tool;
|
||||
|
Loading…
Reference in New Issue
Block a user