Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Using add operation in Point2d

  • Loading branch information...
commit 469a90776e7ba19d69e12dae88796147cb0fb554 1 parent 5921af1
authored September 10, 2009 egonw committed March 05, 2010
3  src/main/org/openscience/cdk/controller/ControllerHub.java
@@ -1874,8 +1874,7 @@ public void mergeMolecules(Vector2d movedDistance) {
1874 1874
                 shift.sub(atomB.getPoint2d(), atomA.getPoint2d());
1875 1875
                 
1876 1876
                 for (IAtom shiftAtom : movedAtomContainer.atoms()) {
1877  
-                    shiftAtom.getPoint2d().x+=shift.x;
1878  
-                    shiftAtom.getPoint2d().y+=shift.y;
  1877
+                    shiftAtom.getPoint2d().add( shift );
1879 1878
                 }
1880 1879
             }
1881 1880
         }

0 notes on commit 469a907

Please sign in to comment.
Something went wrong with that request. Please try again.