aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}