The result of an init.. call might be a different object, store it
This commit is contained in:
@@ -122,12 +122,12 @@ wxToolBarToolBase(
|
|||||||
|
|
||||||
if ( id == wxID_SEPARATOR )
|
if ( id == wxID_SEPARATOR )
|
||||||
{
|
{
|
||||||
[bui initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
|
bui = [bui initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
|
||||||
bui.width = 25.0f;
|
bui.width = 25.0f;
|
||||||
}
|
}
|
||||||
else if ( bmpNormal.IsOk() )
|
else if ( bmpNormal.IsOk() )
|
||||||
{
|
{
|
||||||
[bui initWithImage:bmpNormal.GetUIImage() style:UIBarButtonItemStylePlain target:toolbar
|
bui = [bui initWithImage:bmpNormal.GetUIImage() style:UIBarButtonItemStylePlain target:toolbar
|
||||||
action:@selector(clickedAction:)];
|
action:@selector(clickedAction:)];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -137,7 +137,7 @@ wxToolBarToolBase(
|
|||||||
else
|
else
|
||||||
style = UIBarButtonItemStyleBordered;
|
style = UIBarButtonItemStyleBordered;
|
||||||
|
|
||||||
[bui initWithTitle:wxCFStringRef(label).AsNSString() style:style target:toolbar
|
bui = [bui initWithTitle:wxCFStringRef(label).AsNSString() style:style target:toolbar
|
||||||
action:@selector(clickedAction:)];
|
action:@selector(clickedAction:)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user