flandreas / antares

Digital circuit learning platform
49 stars 6 forks source link

Error when pasting symbol part into circuit #722

Closed fpw closed 6 months ago

fpw commented 7 months ago

As I was editing a circuit symbol, I had a polyline in my clipboard and accidentally pasted it into the circuit editor, leading to this:

Version: 1.11.1
Max snapshot size reached. Create new snapshot.
Move 5 components by key
Move 5 components by key
Move 5 components by key
Move component 'Delay' with ID 16 by mouse
Change property 'Delay (ns)' of component 16 to '50'
Delete component with ID 20
Preparing paste from clipboard
Copy component with ID 16
Preparing paste from clipboard
Paste component with ID 70
Move component 'Delay' with ID 70 by mouse
Move 7 components by key
Move 7 components by key
Max snapshot size reached. Create new snapshot.
Move 7 components by key
Move 7 components by key
Move component 'Delay' with ID 70 by mouse
Copy component with ID 17
Preparing paste from clipboard
java.lang.ClassCastException: class ch.scorpion.jabbah.edit.model.polyline.PolylineComponent cannot be cast to class ch.scorpion.jabbah.graph.view.GraphElementView (ch.scorpion.jabbah.edit.model.polyline.PolylineComponent and ch.scorpion.jabbah.graph.view.GraphElementView are in unnamed module of loader 'app')
    at ch.scorpion.jabbah.graph.view.graph.GraphViewImpl.add(SourceFile:38)
    at ch.scorpion.jabbah.b.h$DefaultImpls.add$default(SourceFile:54)
    at ch.scorpion.jabbah.graph.view.graph.a.a(SourceFile:159)
    at ch.scorpion.jabbah.graph.view.graph.a.a(SourceFile:113)
    at ch.scorpion.jabbah.graph.view.graph.a.a(SourceFile:109)
    at ch.scorpion.jabbah.edit.a.m.c(SourceFile:181)
    at ch.scorpion.jabbah.edit.a.y.a(SourceFile:50)
    at ch.scorpion.jabbah.base.j.actionPerformed(SourceFile:74)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)