Applied patch [ 892511 ] wxUniversal: fix of segfault in toolbar.cpp

Christian Sturmlechner


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-02-08 11:49:22 +00:00
parent 00f5539438
commit 2321962672

View File

@@ -645,6 +645,8 @@ bool wxToolBar::PerformAction(const wxControlAction& action,
const wxString& strArg)
{
wxToolBarTool *tool = (wxToolBarTool*) FindById(numArg);
if (!tool)
return false;
if ( action == wxACTION_TOOLBAR_TOGGLE )
{