Skip to content

Commit

Permalink
Changed saturation conditional to also check that a bond is not aroma…
Browse files Browse the repository at this point in the history
…tic.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Jan 30, 2013
1 parent 29d6fbb commit f4b625f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -182,7 +182,8 @@ private boolean isCarbonOnlyRing(IAtomContainer ring) {

private boolean isRingSaturated(IAtomContainer ring) {
for (IBond ringBond : ring.bonds()) {
if (ringBond.getOrder() != IBond.Order.SINGLE) return false;
if (ringBond.getOrder() != IBond.Order.SINGLE
|| ringBond.getFlag(CDKConstants.ISAROMATIC)) return false;
}
return true;
}
Expand Down

0 comments on commit f4b625f

Please sign in to comment.