Skip to content

Commit 26b9696

Browse files
committed
fix: broken compilation due encoding update to utf-8: ellipsis char constant seen as string now, instead of char
Refs #2474
1 parent 85fb0bd commit 26b9696

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/apphelpers.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ 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 := Result + '';
539539
end else begin
540540
Result := Copy(Result, Length(Result)-MaxLen, Length(Result));
541541
Result := '' + Result;

0 commit comments

Comments
 (0)