Skip to content

Commit

Permalink
Don't configure aromaticity if not explicitly set to true for the ato…
Browse files Browse the repository at this point in the history
…m type (closes #1322)
  • Loading branch information
egonw committed Aug 10, 2016
1 parent d4b2490 commit 0dda78a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public static void configure(IAtom atom, IAtomType atomType) {
if (constant != null) {
atom.setProperty(CDKConstants.CHEMICAL_GROUP_CONSTANT, constant);
}
atom.setFlag(CDKConstants.ISAROMATIC, atomType.getFlag(CDKConstants.ISAROMATIC));
if (atomType.getFlag(CDKConstants.ISAROMATIC))
atom.setFlag(CDKConstants.ISAROMATIC, atomType.getFlag(CDKConstants.ISAROMATIC));

Object color = atomType.getProperty("org.openscience.cdk.renderer.color");
if (color != null) {
Expand Down

0 comments on commit 0dda78a

Please sign in to comment.