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:
@@ -645,6 +645,8 @@ bool wxToolBar::PerformAction(const wxControlAction& action,
|
|||||||
const wxString& strArg)
|
const wxString& strArg)
|
||||||
{
|
{
|
||||||
wxToolBarTool *tool = (wxToolBarTool*) FindById(numArg);
|
wxToolBarTool *tool = (wxToolBarTool*) FindById(numArg);
|
||||||
|
if (!tool)
|
||||||
|
return false;
|
||||||
|
|
||||||
if ( action == wxACTION_TOOLBAR_TOGGLE )
|
if ( action == wxACTION_TOOLBAR_TOGGLE )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user