JChemPaint / jchempaint

Chemical 2D structure editor application/applet based on the Chemistry Development Kit
http://jchempaint.github.com
112 stars 35 forks source link

drag bond throws #143

Closed rwst closed 12 years ago

rwst commented 12 years ago

when you try to drag the bond in ethane: Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.openscience.cdk.Bond cannot be cast to org.openscience.cdk.interfaces.IAtom at org.openscience.jchempaint.controller.AbstractSelectModule.getClosestSelAtom(AbstractSelectModule.java:60) at org.openscience.jchempaint.controller.AbstractSelectModule.mouseDrag(AbstractSelectModule.java:87) at org.openscience.jchempaint.controller.ControllerHub.mouseDrag(ControllerHub.java:324) at org.openscience.jchempaint.controller.SwingMouseEventRelay.mouseDragged(SwingMouseEventRelay.java:67) at java.awt.Component.processMouseMotionEvent(Component.java:6553)

This worked with 3.2!