Skip to content

Commit

Permalink
Fixed TextFlow children concurrency access (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen committed Oct 25, 2022
1 parent c33c7d2 commit 468576a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int getLineCount() {
double totLines = 0.0, prevMaxY = -1.0;
int totCharSoFar = 0;

for ( Node n : flow.getChildren() ) if ( n.isManaged() ) {
for ( Node n : flow.getChildrenUnmodifiable() ) if ( n.isManaged() ) {

Bounds nodeBounds = n.getBoundsInParent();
int length = (n instanceof Text) ? ((Text) n).getText().length() : 1;
Expand Down

0 comments on commit 468576a

Please sign in to comment.