mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Restore tabs in symbol font menu, without making the part after it an accelerator.
TODO: check if this also works on other platforms git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@953 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -469,7 +469,13 @@ wxMenu* InsertSymbolMenu::makeMenu(int id, SymbolFont& font) const {
|
||||
}
|
||||
wxMenuItem* InsertSymbolMenu::makeMenuItem(wxMenu* parent, int first_id, SymbolFont& font) const {
|
||||
wxString menu_name = tr(font, _("menu item"), name, capitalize);
|
||||
menu_name.Replace(_("\t"),_(" "));
|
||||
// ensure that there is not actually an accelerator string,
|
||||
menu_name.Replace(_("\t "),_("\t"));
|
||||
#ifdef __WXMSW__
|
||||
menu_name.Replace(_("\t"),_("\t ")); // by prepending " "
|
||||
#else
|
||||
menu_name.Replace(_("\t"),_(" ")); // by simply dropping the \t
|
||||
#endif
|
||||
if (type == ITEM_SUBMENU) {
|
||||
wxMenuItem* item = new wxMenuItem(parent, wxID_ANY, menu_name,
|
||||
wxEmptyString, wxITEM_NORMAL,
|
||||
|
||||
Reference in New Issue
Block a user