]> git.saurik.com Git - wxWidgets.git/commitdiff
return NULL from FindById() if the tool wasn't found (bug 508399)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Feb 2002 21:04:43 +0000 (21:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Feb 2002 21:04:43 +0000 (21:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/tbarbase.cpp

index dbce9ffff6e8eb860a41dd36ec3e1488533e97bf..4279126dd41d706ba3d1b64d6c5ff2096232c147 100644 (file)
@@ -318,6 +318,8 @@ wxToolBarToolBase *wxToolBarBase::FindById(int id) const
             // found
             break;
         }
+
+        tool = NULL;
     }
 
     return tool;