Closed mealingr closed 2 years ago
This is a small fix for a potential StringIndexOutOfBoundsException that can happen if cutIndex is increased to be greater than word.length() e.g. via
StringIndexOutOfBoundsException
cutIndex
word.length()
breakWordHard("sometext-0000-0000", new FontDescriptor(PDType1Font.HELVETICA, 10), 92.65513f)
Thanks
This is a small fix for a potential
StringIndexOutOfBoundsException
that can happen ifcutIndex
is increased to be greater thanword.length()
e.g. viabreakWordHard("sometext-0000-0000", new FontDescriptor(PDType1Font.HELVETICA, 10), 92.65513f)
Thanks