Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: allParToVisibleParIndex throws Exception when allParIndex is >= size of visible paragraphs but <= area's last paragraph index #758

Closed
JordanMartinez opened this issue Jun 28, 2018 · 0 comments
Labels

Comments

@JordanMartinez
Copy link
Contributor

As originally reported here...

Expected Behavior

allParToVisibleParIndex(int allParIndex) should return Optional.of(correspondingVisibleParIndex) for all valid allParIndex arguments.

Actual Behavior

allParToVisibleParIndex(int allParIndex) throws an exception if allParIndex 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant