String.PadLeft() and String.PadRight() are not inverted anymore when padding with one byte strings.
[GB.UTIL] * BUG: String.PadLeft() and String.PadRight() are not inverted anymore when padding with one byte strings.
This commit is contained in:
parent
b66607099d
commit
71d9c85887
1 changed files with 2 additions and 2 deletions
|
@ -299,9 +299,9 @@ Static Private Sub PadString(sStr As String, iLength As Integer, sPad As String,
|
|||
|
||||
If Len(sPad) = 1 Then
|
||||
If bRight Then
|
||||
Return String$(iLength, sPad) & sStr
|
||||
Else
|
||||
Return sStr & String$(iLength, sPad)
|
||||
Else
|
||||
Return String$(iLength, sPad) & sStr
|
||||
Endif
|
||||
Else
|
||||
iLen = String.Len(sPad)
|
||||
|
|
Loading…
Reference in a new issue