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:
gambas 2020-02-29 20:16:56 +01:00
parent b66607099d
commit 71d9c85887

View file

@ -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)