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:
Vadim Zeitlin 2002-02-13 21:04:43 +00:00
parent 7183fd726e
commit d973988695

View File

@ -318,6 +318,8 @@ wxToolBarToolBase *wxToolBarBase::FindById(int id) const
// found
break;
}
tool = NULL;
}
return tool;