ideintf: strings property editor: count characters instead of bytes (issue #17753)

git-svn-id: trunk@28036 -
This commit is contained in:
vincents 2010-11-02 09:54:49 +00:00
parent 39f58d48bc
commit b90196f307

View File

@ -22,7 +22,7 @@ unit StringsPropEditDlg;
interface
uses
Classes, SysUtils, Forms, Controls, Buttons, Dialogs, StdCtrls,
Classes, SysUtils, LCLProc, Forms, Controls, Buttons, Dialogs, StdCtrls,
TextTools, ObjInspStrConsts, ExtCtrls, ButtonPanel;
type
@ -64,7 +64,7 @@ var
I: Integer;
begin
NumChars := 0;
for I := 0 to Memo.Lines.Count - 1 do Inc(NumChars, Length(Memo.Lines[I]));
for I := 0 to Memo.Lines.Count - 1 do Inc(NumChars, Utf8Length(Memo.Lines[I]));
if Memo.Lines.Count = 1 then
StatusLabel.Caption := Format(ois1LineDChars, [NumChars])