From 4726402abdca65119ea176692a672e1cf78137dc Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 11 Jan 2012 19:18:35 +0000 Subject: [PATCH] Don't embolden spell check suggestions Setting the font to bold also changes the font size, which results in the suggestions looking worse than the default appearance is. Originally committed to SVN as r6269. --- aegisub/src/subs_edit_ctrl.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/aegisub/src/subs_edit_ctrl.cpp b/aegisub/src/subs_edit_ctrl.cpp index 019242686..b924f7435 100644 --- a/aegisub/src/subs_edit_ctrl.cpp +++ b/aegisub/src/subs_edit_ctrl.cpp @@ -727,9 +727,6 @@ void SubsTextEditCtrl::OnContextMenu(wxContextMenuEvent &event) { if (spellchecker.get() && currentWord.Length()) { bool rightSpelling = spellchecker->CheckWord(currentWord); - wxFont font; - font.SetWeight(wxFONTWEIGHT_BOLD); - sugs.Clear(); sugs = spellchecker->GetSuggestions(currentWord); int nSugs = sugs.Count(); @@ -740,11 +737,7 @@ void SubsTextEditCtrl::OnContextMenu(wxContextMenuEvent &event) { } for (int i=0;iSetFont(font); -#endif - menu.Append(itm); + menu.Append(EDIT_MENU_SUGGESTIONS+i, sugs[i]); } // Append "add word" @@ -808,9 +801,6 @@ void SubsTextEditCtrl::OnContextMenu(wxContextMenuEvent &event) { } if (result.size()) { - wxFont font; - font.SetStyle(wxFONTSTYLE_ITALIC); - // Create thesaurus menu wxMenu *thesMenu = new wxMenu();