adding Kevin's fix for wxTOOL_STYLE_SEPARATOR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
20fb9ddf29
commit
60812bf669
@ -960,10 +960,16 @@ bool wxToolBar::Realize()
|
||||
}
|
||||
}
|
||||
}
|
||||
wxString identifier = wxString::Format( wxT("%ld"), (long) tool );
|
||||
wxCFStringRef cfidentifier(identifier);
|
||||
if (tool->GetStyle() == wxTOOL_STYLE_SEPARATOR)
|
||||
[refTB insertItemWithItemIdentifier:NSToolbarSeparatorItemIdentifier atIndex:currentPosition];
|
||||
else
|
||||
{
|
||||
|
||||
wxString identifier = wxString::Format( wxT("%ld"), (long) tool );
|
||||
wxCFStringRef cfidentifier(identifier);
|
||||
|
||||
[refTB insertItemWithItemIdentifier:cfidentifier.AsNSString() atIndex:currentPosition];
|
||||
[refTB insertItemWithItemIdentifier:cfidentifier.AsNSString() atIndex:currentPosition];
|
||||
}
|
||||
tool->SetIndex( currentPosition );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user