From 38241d0eb57ce622d7da7ad761459709e3784413 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Wed, 3 Jan 2007 22:05:43 +0000 Subject: [PATCH] More fix for building on wx pre-2.8 Originally committed to SVN as r701. --- aegisub/subs_edit_ctrl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aegisub/subs_edit_ctrl.cpp b/aegisub/subs_edit_ctrl.cpp index 58aa96ef7..080119488 100644 --- a/aegisub/subs_edit_ctrl.cpp +++ b/aegisub/subs_edit_ctrl.cpp @@ -813,7 +813,12 @@ void SubsTextEditCtrl::ShowPopupMenu(int activePos) { if (!nSugs) menu.Append(EDIT_MENU_SUGGESTION,_("No correction suggestions"))->Enable(false); // Build menu - for (int i=0;iSetFont(font); + for (int i=0;iSetFont(font); +#endif + } // Append "add word" menu.Append(EDIT_MENU_ADD_TO_DICT,wxString::Format(_("Add \"%s\" to dictionary"),currentWord.c_str()))->Enable(spellchecker->CanAddWord(currentWord));