fix crash introduced in last commit (the correct item variable was shadowed by another one and so remained NULL)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
527343602e
commit
d5c87edd82
@ -1491,8 +1491,8 @@ bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase)
|
|||||||
|
|
||||||
#if wxMAC_USE_NATIVE_TOOLBAR
|
#if wxMAC_USE_NATIVE_TOOLBAR
|
||||||
{
|
{
|
||||||
wxASSERT( tool->GetControl() != NULL );
|
wxCHECK_MSG( tool->GetControl(), false, _T("control must be non-NULL") );
|
||||||
HIToolbarItemRef item;
|
|
||||||
HIViewRef viewRef = (HIViewRef) tool->GetControl()->GetHandle() ;
|
HIViewRef viewRef = (HIViewRef) tool->GetControl()->GetHandle() ;
|
||||||
// as this control now is part of both the wxToolBar children and the native toolbar, we have to increase the
|
// as this control now is part of both the wxToolBar children and the native toolbar, we have to increase the
|
||||||
// reference count to make sure we are not dealing with zombie controls after the native toolbar has released its views
|
// reference count to make sure we are not dealing with zombie controls after the native toolbar has released its views
|
||||||
|
Loading…
Reference in New Issue
Block a user