From ab987025912af7a75707ca8decd8dfd0defb0268 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Mon, 25 Dec 2006 22:30:11 +0000 Subject: [PATCH] Small fix to thesaurus Originally committed to SVN as r612. --- core/subs_edit_ctrl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/subs_edit_ctrl.cpp b/core/subs_edit_ctrl.cpp index 934ef4e1d..14afd8b53 100644 --- a/core/subs_edit_ctrl.cpp +++ b/core/subs_edit_ctrl.cpp @@ -671,6 +671,12 @@ void SubsTextEditCtrl::OnUseSuggestion(wxCommandEvent &event) { void SubsTextEditCtrl::OnUseThesaurusSuggestion(wxCommandEvent &event) { // Get suggestion wxString suggestion = thesSugs[event.GetId()-EDIT_MENU_THESAURUS_SUGS]; + + // Stripe suggestion of parenthesis + int pos = suggestion.Find(_T("(")); + if (pos != wxNOT_FOUND) { + suggestion = suggestion.Left(pos-1); + } // Get boundaries of text being replaced int start,end;