Skip to content

Commit

Permalink
fixed remove hydrogens bug
Browse files Browse the repository at this point in the history
  • Loading branch information
asad committed Jun 21, 2016
1 parent 0be45dc commit b12511b
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -339,7 +339,6 @@ public static int getHydrogenCount(IAtomContainer atomContainer, IAtom atom) {
*/
public static IAtomContainer convertExplicitToImplicitHydrogens(IAtomContainer atomContainer) {
IAtomContainer mol = atomContainer.getBuilder().newInstance(IAtomContainer.class, atomContainer);
setNullHCountToZero(mol);
if (mol.getAtomCount() > 1) {
mol = removeHydrogensExceptSingleAndPreserveAtomID(mol);
} else if (mol.getAtomCount() == 1 && !atomContainer.atoms().iterator().next().getSymbol().equalsIgnoreCase("H")) {
Expand Down

0 comments on commit b12511b

Please sign in to comment.