mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 04:18:48 +02:00
ideintf: strings property editor: count characters instead of bytes (issue #17753)
git-svn-id: trunk@28036 -
This commit is contained in:
parent
39f58d48bc
commit
b90196f307
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user