mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 06:33:34 +02:00
Bug: getShapes in ShapeGroup war immer leer
This commit is contained in:
@@ -100,7 +100,7 @@ public class ShapeGroup extends Shape {
|
||||
public <ShapeType extends Shape> List<ShapeType> getShapes( Class<ShapeType> typeClass ) {
|
||||
LinkedList<ShapeType> list = new LinkedList<>();
|
||||
for( Shape s : shapes ) {
|
||||
if( typeClass.getClass().isInstance(s) ) {
|
||||
if( typeClass.isInstance(s) ) {
|
||||
list.add((ShapeType) s);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user