Small fix to thesaurus

Originally committed to SVN as r612.
This commit is contained in:
Rodrigo Braz Monteiro 2006-12-25 22:30:11 +00:00
parent 6b8fc30463
commit ab98702591
1 changed files with 6 additions and 0 deletions

View File

@ -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;