We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 432f593 commit 793def6Copy full SHA for 793def6
1 file changed
richtextfx/src/main/java/org/fxmisc/richtext/GenericStyledArea.java
@@ -794,7 +794,7 @@ public final Optional<Integer> allParToVisibleParIndex(int allParIndex) {
794
if (allParIndex < 0) {
795
throw new IllegalArgumentException("The given paragraph index (allParIndex) cannot be negative but was " + allParIndex);
796
}
797
- if (allParIndex >= getVisibleParagraphs().size()) {
+ if (allParIndex >= getParagraphs().size()) {
798
throw new IllegalArgumentException(String.format(
799
"Paragraphs' last index is [%s] but allParIndex was [%s]",
800
getParagraphs().size() - 1, allParIndex)
0 commit comments