aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-08-28 23:38:47 +0200
committerSven Gothel <[email protected]>2023-08-28 23:38:47 +0200
commit35746b3a618d94b03fc1ab465114d4d97540f45d (patch)
tree6ae7bded5815e2422670085ac09920c2659dbd1e /src
parentd45e0ae4046f1bd42a3b5107984b77c4f5ee0276 (diff)
GraphUI Demo FontView01: Fix '-showUnderline', i.e. glyphListener shall use the last element in container, the GlyphShape
Diffstat (limited to 'src')
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java2
1 files changed, 1 insertions, 1 deletions
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);
}