From 84ef03374eb1ebef08c2bd5c764a45f9ad21cec1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 18 Apr 2023 05:27:42 +0200 Subject: Graph OutlineShape.checkOverlaps(): Test overlap first to drop overlaps.contains(..) test --- src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl') diff --git a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java index 30987ec7e..20eaca236 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java +++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java @@ -814,7 +814,7 @@ public final class OutlineShape implements Comparable { } else { overlap = null; } - if( overlaps.contains(currentVertex) || overlap != null ) { + if( null != overlap || overlaps.contains(currentVertex) ) { overlaps.remove(currentVertex); subdivideTriangle(outline, prevV, currentVertex, nextV, i); -- cgit v1.2.3