forked from mia/Aegisub
Fixed issue #675, that caused insertion of override tags to be unable to reach the end of the line when characters over U+7F were present.
Originally committed to SVN as r1923.
This commit is contained in:
parent
3327fc0154
commit
9cd698f673
1 changed files with 2 additions and 2 deletions
|
@ -953,8 +953,8 @@ void SubsEditBox::SetOverride (wxString tagname,wxString preValue,int forcePos,b
|
|||
}
|
||||
else TextEdit->GetSelection(&selstart,&selend);
|
||||
int len = TextEdit->GetText().Length();
|
||||
selstart = TextEdit->GetReverseUnicodePosition(MID(0,selstart,len));
|
||||
selend = TextEdit->GetReverseUnicodePosition(MID(0,selend,len));
|
||||
selstart = MID(0,TextEdit->GetReverseUnicodePosition(selstart),len);
|
||||
selend = MID(0,TextEdit->GetReverseUnicodePosition(selend),len);
|
||||
|
||||
// Current tag name
|
||||
wxString alttagname = tagname;
|
||||
|
|
Loading…
Reference in a new issue