Skip to content

Commit

Permalink
corrected bug in bondtools.isStereo(IAtomContainer container, IAtom s…
Browse files Browse the repository at this point in the history
…tereoAtom). A comparision of atom symbols in a nested loop was using the counter of the outer loop twice. Note it worked before, because there is a sort of fallback to Morgan numbers. fallback to morgan (fixes #2830287)

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
Stefan Kuhn authored and egonw committed Jul 31, 2009
1 parent 13f72bd commit 025fb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/org/openscience/cdk/geometry/BondTools.java
Expand Up @@ -427,7 +427,7 @@ public static boolean isStereo(IAtomContainer container, IAtom stereoAtom)
boolean isDifferent = true;
for (int k = 0; k < i; k++)
{
if (atoms.get(i).getSymbol().equals(atoms.get(i).getSymbol()))
if (atoms.get(i).getSymbol().equals(atoms.get(k).getSymbol()))
{
isDifferent = false;
break;
Expand Down

0 comments on commit 025fb47

Please sign in to comment.