From: Vadim Zeitlin Date: Wed, 13 Feb 2002 21:04:43 +0000 (+0000) Subject: return NULL from FindById() if the tool wasn't found (bug 508399) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d973988695fc9cb3a3abe10929e469e0ea731d77 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 --- diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index dbce9ffff6..4279126dd4 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -318,6 +318,8 @@ wxToolBarToolBase *wxToolBarBase::FindById(int id) const // found break; } + + tool = NULL; } return tool;