JChemPaint / jchempaint

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

saving a freshly drawn reaction as MDL RXN complains about extra molecules #110

Open egonw opened 12 years ago

egonw commented 12 years ago

Saving a freshly drawn reaction as MDL RXN complains about extra molecules in a dialog. When you save the file as CML(React) you will see it has an empty IAtomContainer, not part of the IReaction.

To reproduce:

You then get a dialog complaining about an atom container not part of the reaction. I guess this is an IAtomContainer that was left behind from the Controller.

Expected behavior: the Save method removes empty atom containers before even thinking of serialization.