strPadL fix

This commit is contained in:
mysticbbs 2013-04-22 21:56:21 -04:00
parent 7d0997a6fa
commit cc010ba63c
1 changed files with 3 additions and 2 deletions

View File

@ -72,8 +72,9 @@ Begin
If Length(Str) >= Len Then
Result := Copy(Str, 1, Len)
Else Begin
FillChar (TStr, Len, Ch);
SetLength(TStr, Len - Length(Str));
FillChar (TStr[1], Len, Ch);
SetLength (TStr, Len - Length(Str));
Result := TStr + Str;
End;
End;