Permalink
Browse files

Fix for changes of builders in cdk

  • Loading branch information...
1 parent c961244 commit 45b096697695fb06d9e87bb4a87de83d941124f9 Arvid Berg committed with Jun 9, 2010
@@ -193,9 +193,9 @@ private void getEngine() {
IAtomContainer container=cdkmol.getAtomContainer();
//Make sure e have a Molecule, otherwise create it
- if (!(container instanceof IMolecule)) container =
- container.getBuilder().newInstance(
- org.openscience.cdk.interfaces.IMolecule.class, container);
+ if (!(container instanceof org.openscience.cdk.interfaces.IMolecule))
+ container = container.getBuilder().newInstance(
+ org.openscience.cdk.interfaces.IMolecule.class, container);
//Store results here
List<IDescriptorResult> results = new ArrayList<IDescriptorResult>();

0 comments on commit 45b0966

Please sign in to comment.