Skip to content

Commit

Permalink
Allow the tautomer generation to be interrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Aug 16, 2012
1 parent 5c1c645 commit 44def77
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -3175,6 +3175,7 @@ public List<ICDKMolecule> getTautomers(IMolecule molecule, IProgressMonitor moni
List<ICDKMolecule> tautomerList = new ArrayList<ICDKMolecule>();

for (IAtomContainer tautomer : tautomers) {
if(monitor.isCanceled()) throw new OperationCanceledException();
tautomerList.add(newMolecule(tautomer));
monitor.worked(1);
}
Expand Down

0 comments on commit 44def77

Please sign in to comment.