Crash fix for when a wxNullBitmap is passed in as the bitmap to use.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,7 +47,9 @@ wxWidgetImplType* wxWidgetImpl::CreateBitmapButton( wxWindowMac* wxpeer,
|
|||||||
[v setBezelStyle:NSRegularSquareBezelStyle];
|
[v setBezelStyle:NSRegularSquareBezelStyle];
|
||||||
}
|
}
|
||||||
|
|
||||||
[v setImage:bitmap.GetNSImage() ];
|
if (bitmap.Ok())
|
||||||
|
[v setImage:bitmap.GetNSImage() ];
|
||||||
|
|
||||||
[v setButtonType:NSMomentaryPushInButton];
|
[v setButtonType:NSMomentaryPushInButton];
|
||||||
wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
|
wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
|
||||||
return c;
|
return c;
|
||||||
|
Reference in New Issue
Block a user