From 92ec47e74eef3ba47627b04ddf78996fa3a2296f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 12 Apr 2023 19:07:27 +0200 Subject: GraphUI TreeTool: Iterate from start to end (not vice versa), eliminating potential side-effects - fixing forSortedAll(..) --- src/graphui/classes/jogamp/graph/ui/TreeTool.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graphui/classes') diff --git a/src/graphui/classes/jogamp/graph/ui/TreeTool.java b/src/graphui/classes/jogamp/graph/ui/TreeTool.java index f4fe2813d..c5701d6e2 100644 --- a/src/graphui/classes/jogamp/graph/ui/TreeTool.java +++ b/src/graphui/classes/jogamp/graph/ui/TreeTool.java @@ -49,7 +49,7 @@ public class TreeTool { * @return true to signal operation complete, i.e. {@code shape} found, otherwise false */ public static boolean forOne(final List shapes, final PMVMatrix pmv, final Shape shape, final Runnable action) { - for(int i=shapes.size()-1; i>=0; i--) { + for(int i=0; i shapes, final Visitor1 v) { - for(int i=shapes.size()-1; i>=0; i--) { + for(int i=0; i shapes, final PMVMatrix pmv, final Visitor2 v) { - for(int i=shapes.size()-1; i>=0; i--) { + for(int i=0; i=0; i--) { + for(int i=0; i