Skip to content

Commit

Permalink
Correct check for cyclic bonds.
Browse files Browse the repository at this point in the history
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Oct 22, 2013
1 parent 3e04187 commit 43352de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/org/openscience/cdk/aromaticity/AtomTypeModel.java
Expand Up @@ -139,8 +139,7 @@ final class AtomTypeModel extends ElectronDonation {
int u = indexMap.get(a1);
int v = indexMap.get(a2);

// XXX: bond may be between rings, need patch under review to change for this
if (!ringSearch.cyclic(u) || !ringSearch.cyclic(v)) {
if (!ringSearch.cyclic(u, v)) {

// XXX: single exception - we could make this more general but
// for now this mirrors the existing behavior
Expand Down

0 comments on commit 43352de

Please sign in to comment.