We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c33c7d2 commit 468576aCopy full SHA for 468576a
1 file changed
richtextfx/src/main/java9/org/fxmisc/richtext/TextFlowLayout.java
@@ -75,7 +75,7 @@ int getLineCount() {
75
double totLines = 0.0, prevMaxY = -1.0;
76
int totCharSoFar = 0;
77
78
- for ( Node n : flow.getChildren() ) if ( n.isManaged() ) {
+ for ( Node n : flow.getChildrenUnmodifiable() ) if ( n.isManaged() ) {
79
80
Bounds nodeBounds = n.getBoundsInParent();
81
int length = (n instanceof Text) ? ((Text) n).getText().length() : 1;
0 commit comments