From 9b3f6411f35f94f40bde7a7c921ba3be2813d760 Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 2 Jun 2008 20:25:05 +0000 Subject: [PATCH] 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 --- src/data/symbol_font.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/data/symbol_font.cpp b/src/data/symbol_font.cpp index 5cdb9928..dfc43011 100644 --- a/src/data/symbol_font.cpp +++ b/src/data/symbol_font.cpp @@ -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,