Skip to content

Commit

Permalink
Critical patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Feb 8, 2017
1 parent 0d0e7f6 commit 2764910
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ private static final class LayoutBackup {

public LayoutBackup(IAtomContainer mol) {
final int numAtoms = mol.getAtomCount();
final int numBonds = mol.getAtomCount();
final int numBonds = mol.getBondCount();
this.coords = new Point2d[numAtoms];
this.btypes = new IBond.Stereo[numBonds];
this.mol = mol;
Expand All @@ -1151,7 +1151,7 @@ public LayoutBackup(IAtomContainer mol) {

void reset() {
final int numAtoms = mol.getAtomCount();
final int numBonds = mol.getAtomCount();
final int numBonds = mol.getBondCount();
for (int i = 0; i < numAtoms; i++)
mol.getAtom(i).setPoint2d(coords[i]);
for (int i = 0; i < numBonds; i++)
Expand Down

0 comments on commit 2764910

Please sign in to comment.