Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 59006 Details for
Bug 173669
SnapToGrid does not work for EAST and SOUTH
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch as requested
patch.txt (text/plain), 1.16 KB, created by
Calman Steynberg
on 2007-02-14 15:38:23 EST
(
hide
)
Description:
Patch as requested
Filename:
MIME Type:
Creator:
Calman Steynberg
Created:
2007-02-14 15:38:23 EST
Size:
1.16 KB
patch
obsolete
>### 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; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 173669
:
58666
|
58780
| 59006