mirror of https://github.com/odrling/Aegisub
Small fix to thesaurus
Originally committed to SVN as r612.
This commit is contained in:
parent
6b8fc30463
commit
ab98702591
|
@ -672,6 +672,12 @@ void SubsTextEditCtrl::OnUseThesaurusSuggestion(wxCommandEvent &event) {
|
||||||
// Get suggestion
|
// Get suggestion
|
||||||
wxString suggestion = thesSugs[event.GetId()-EDIT_MENU_THESAURUS_SUGS];
|
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
|
// Get boundaries of text being replaced
|
||||||
int start,end;
|
int start,end;
|
||||||
GetBoundsOfWordAtPosition(currentWordPos,start,end);
|
GetBoundsOfWordAtPosition(currentWordPos,start,end);
|
||||||
|
|
Loading…
Reference in New Issue