Skip to content

Commit 77d84bc

Browse files
committed
Set the ring status of query atoms.
1 parent afdb09f commit 77d84bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/isomorphism/src/main/java/org/openscience/cdk/isomorphism/matchers/QueryAtomContainer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,7 @@ public static void create(IAtomContainer dst,
18161816
}
18171817

18181818
QueryAtom qatom = new QueryAtom(expr);
1819+
qatom.setIsInRing(atom.isInRing());
18191820

18201821
// backward compatibility for naughty methods that are expecting
18211822
// these to be set for a query!
@@ -1873,6 +1874,7 @@ else if (optset.contains(IS_IN_CHAIN) && !bond.isInRing())
18731874
QueryBond qbond = new QueryBond((IAtom) mapping.get(bond.getBegin()),
18741875
(IAtom) mapping.get(bond.getEnd()),
18751876
expr);
1877+
qbond.setIsInRing(bond.isInRing());
18761878
// backward compatibility for naughty methods that are expecting
18771879
// these to be set for a query!
18781880
if (optset.contains(Expr.Type.ALIPHATIC_ORDER) ||

0 commit comments

Comments
 (0)