From 35746b3a618d94b03fc1ab465114d4d97540f45d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 28 Aug 2023 23:38:47 +0200 Subject: GraphUI Demo FontView01: Fix '-showUnderline', i.e. glyphListener shall use the last element in container, the GlyphShape --- src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/demos/com/jogamp/opengl') diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java index 4562b37fa..dcc1102ed 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java @@ -192,7 +192,7 @@ public class FontView01 { @Override public void run(final Shape shape) { final Group c = (Group)shape; - final GlyphShape gs = (GlyphShape)c.getShapes().get(1); + final GlyphShape gs = (GlyphShape)c.getShapes().get( c.getShapes().size() - 1 ); if( 2 == glyphCont.getShapes().size() ) { glyphCont.removeShape(1); } -- cgit v1.2.3