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:
twanvl
2008-06-02 20:25:05 +00:00
parent f087c62aba
commit 9b3f6411f3
+7 -1
View File
@@ -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,