Skip to content

Commit 3a3775e

Browse files
committed
Set atomic number as well as symbol for work by @xperrylinn.
1 parent 6a12829 commit 3a3775e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,8 +1806,10 @@ public static QueryAtomContainer create(IAtomContainer mol, Expr.Type... opts) {
18061806
// these to be set for a query!
18071807
if (optset.contains(Expr.Type.ELEMENT) ||
18081808
optset.contains(Expr.Type.AROMATIC_ELEMENT) ||
1809-
optset.contains(Expr.Type.ALIPHATIC_ELEMENT))
1809+
optset.contains(Expr.Type.ALIPHATIC_ELEMENT)) {
18101810
qatom.setSymbol(atom.getSymbol());
1811+
qatom.setAtomicNumber(atom.getAtomicNumber());
1812+
}
18111813
if (optset.contains(Expr.Type.AROMATIC_ELEMENT) ||
18121814
optset.contains(Expr.Type.IS_AROMATIC))
18131815
qatom.setIsAromatic(atom.isAromatic());

0 commit comments

Comments
 (0)