From 610ca20d56558d509a784def049fe1d7f3c5a541 Mon Sep 17 00:00:00 2001 From: lsv Date: Wed, 17 Sep 2025 15:26:33 +0500 Subject: [PATCH] fix. support unicode. --- ctl/ctlSQLBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctl/ctlSQLBox.cpp b/ctl/ctlSQLBox.cpp index 774dc6b..eb28db6 100644 --- a/ctl/ctlSQLBox.cpp +++ b/ctl/ctlSQLBox.cpp @@ -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);