### Eclipse Workspace Patch 1.0 #P org.eclipse.gef Index: src/org/eclipse/gef/SnapToGrid.java =================================================================== RCS file: /cvsroot/tools/org.eclipse.gef/src/org/eclipse/gef/SnapToGrid.java,v retrieving revision 1.31 diff -u -r1.31 SnapToGrid.java --- src/org/eclipse/gef/SnapToGrid.java 24 Jun 2005 22:05:46 -0000 1.31 +++ src/org/eclipse/gef/SnapToGrid.java 14 Feb 2007 20:33:17 -0000 @@ -125,8 +125,9 @@ makeRelative(container.getContentPane(), correction); if (gridX > 0 && (snapLocations & EAST) != 0) { - correction.preciseWidth -= Math.IEEEremainder(rect.preciseRight() + double rightCorrection = Math.IEEEremainder(rect.preciseRight() - origin.x - 1, gridX); + correction.preciseX -= rightCorrection; snapLocations &= ~EAST; } @@ -140,8 +141,9 @@ } if ((snapLocations & SOUTH) != 0 && gridY > 0) { - correction.preciseHeight -= Math.IEEEremainder(rect.preciseBottom() + double bottomCorrection = Math.IEEEremainder(rect.preciseBottom() - origin.y - 1, gridY); + correction.preciseY -= bottomCorrection; snapLocations &= ~SOUTH; }