Skip to content

Commit 7125615

Browse files
committed
prevent negatives
1 parent 05d8eae commit 7125615

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Aztec/Classes/TextKit/ParagraphProperty/TextList.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,5 @@ fileprivate func getLetter(for number: Int) -> String {
146146
return convert(quotient) + String(listChars[listChars.index(listChars.startIndex, offsetBy: remainder)])
147147
}
148148

149-
return convert(number)
149+
return convert(abs(number))
150150
}

0 commit comments

Comments
 (0)