From 05bb1255e9feab213fb2cc463049623a57c2e1fa Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 5 Sep 2023 02:27:44 +0200 Subject: GraphUI Scene: Only set dbgBorderThickness on shape if not zero and shape has no border yet, i.e. don't override --- src/graphui/classes/com/jogamp/graph/ui/Scene.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/graphui/classes/com/jogamp') diff --git a/src/graphui/classes/com/jogamp/graph/ui/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/Scene.java index ded7a9336..2cb392c83 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Scene.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Scene.java @@ -250,7 +250,9 @@ public final class Scene implements Container, GLEventListener { } @Override public void addShape(final Shape s) { - s.setBorder(dbgBorderThickness); + if( !s.hasBorder() && !FloatUtil.isZero(dbgBorderThickness) ) { + s.setBorder(dbgBorderThickness); + } shapes.add(s); } @Override -- cgit v1.2.3