Skip to content

Commit 85fb0bd

Browse files
committed
refactor: convert remaining latin1 unit to utf-8
Refs #2474
1 parent 41615e6 commit 85fb0bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/apphelpers.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,10 @@ function StrEllipsis(const S: String; MaxLen: Integer; FromLeft: Boolean=True):
535535
Exit;
536536
if FromLeft then begin
537537
SetLength(Result, MaxLen);
538-
Result[MaxLen] := '…';
538+
Result[MaxLen] := '';
539539
end else begin
540540
Result := Copy(Result, Length(Result)-MaxLen, Length(Result));
541-
Result := '…' + Result;
541+
Result := '' + Result;
542542
end;
543543
end;
544544

@@ -848,7 +848,7 @@ function MakeFloat(Str: String): Extended;
848848

849849
function RoundCommercial(e: Extended): Int64;
850850
begin
851-
// "Kaufmännisch runden"
851+
// "Kaufmännisch runden"
852852
// In contrast to Delphi's Round() which rounds *.5 to the next even number
853853
Result := Trunc(e);
854854
if Frac(e) >= 0.5 then
@@ -1528,7 +1528,7 @@ function GetTextHeight(Font: TFont): Integer;
15281528
Bmp := Graphics.TBitmap.Create;
15291529
Bmp.Canvas.Font.Name := Font.Name;
15301530
Bmp.Canvas.Font.Size := Font.Size;
1531-
Result := Bmp.Canvas.TextHeight('Äy');
1531+
Result := Bmp.Canvas.TextHeight('Äy');
15321532
Bmp.Free;
15331533
end;
15341534

0 commit comments

Comments
 (0)