mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix. support unicode.
This commit is contained in:
parent
c36176aafa
commit
610ca20d56
1 changed files with 2 additions and 2 deletions
|
|
@ -351,7 +351,7 @@ void ctlSQLBox::OnTextMark(wxCommandEvent& ev) {
|
|||
int len=0;
|
||||
if (startPos!=endPos) {
|
||||
SetIndicatorCurrent(9);
|
||||
len=GetTextRange(startPos,endPos).Length();
|
||||
len=endPos-startPos;
|
||||
IndicatorFillRange(startPos,len);
|
||||
} else {
|
||||
int ind=IndicatorValueAt(9,curr);
|
||||
|
|
@ -361,7 +361,7 @@ void ctlSQLBox::OnTextMark(wxCommandEvent& ev) {
|
|||
spos=IndicatorStart(9,curr);
|
||||
if (spos>=0) {
|
||||
epos=IndicatorEnd(9,curr);
|
||||
len=GetTextRange(spos,epos).Length();
|
||||
len=epos-spos;
|
||||
//len=PositionRelative(spos,epos);
|
||||
SetIndicatorCurrent(9);
|
||||
IndicatorClearRange(spos,len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue