Иногда строка t не содержала символов что приводило к ошибке.
This commit is contained in:
lsv 2022-12-19 16:34:30 +05:00
parent 462de97f3d
commit a5123c380c

View file

@ -687,7 +687,8 @@ void ctlSQLBox::OnKeyDown(wxKeyEvent &event)
f=true;
} else {t = GetTextRange(pos-rpl.Length()-1, pos);}
//wc = GetTextRange(pos-rpl.Length()-1, pos-rpl.Length()-1);
wxChar c = t.GetChar(0);
wxChar c='\00';
if (t.Len()>0) c = t.GetChar(0);
if (!((c >= '0' && c <= '9')) &&
!(c >= 'a' && c <= 'z') &&
!(c >= 'A' && c <= 'Z') &&