Bug: allParToVisibleParIndex
throws Exception when allParIndex is >= size of visible paragraphs but <= area's last paragraph index
#758
Labels
As originally reported here...
Expected Behavior
allParToVisibleParIndex(int allParIndex)
should returnOptional.of(correspondingVisibleParIndex)
for all validallParIndex
arguments.Actual Behavior
allParToVisibleParIndex(int allParIndex)
throws an exception ifallParIndex
is within the bounds of the area's paragraph indices but less than the last visible paragraph index.This can easily be fixed by checking the argument against the size of the area's total paragraphs rather than the visible ones.
The text was updated successfully, but these errors were encountered: