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 204813 Details for
Bug 239053
ManhattanConnectionRouter doesn't work properly with some anchor combination in the negative coordinates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for the router
ManhattanPatch.txt (text/plain), 1.26 KB, created by
Jean-Denis Bertron
on 2011-10-08 15:43:20 EDT
(
hide
)
Description:
Patch for the router
Filename:
MIME Type:
Creator:
Jean-Denis Bertron
Created:
2011-10-08 15:43:20 EDT
Size:
1.26 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.draw2d >Index: src/org/eclipse/draw2d/ManhattanConnectionRouter.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/ManhattanConnectionRouter.java,v >retrieving revision 1.11 >diff -u -r1.11 ManhattanConnectionRouter.java >--- src/org/eclipse/draw2d/ManhattanConnectionRouter.java 19 May 2010 20:28:19 -0000 1.11 >+++ src/org/eclipse/draw2d/ManhattanConnectionRouter.java 8 Oct 2011 19:32:39 -0000 >@@ -337,7 +337,7 @@ > } else { > if (startNormal.dotProduct(endNormal) > 0) { > // 1 >- if (startNormal.dotProduct(direction) >= 0) >+ if (startNormal.dotProduct(direction) <= 0) > i = startNormal.similarity(start.getAdded(startNormal > .getScaled(10))); > else >@@ -361,7 +361,7 @@ > positions.add(new Integer(i)); > horizontal = !horizontal; > >- if (startNormal.dotProduct(direction) < 0) { >+ if (endNormal.dotProduct(direction) > 0) { > i = endNormal.similarity(end.getAdded(endNormal > .getScaled(10))); > positions.add(new Integer(i)); >@@ -377,5 +377,4 @@ > processPositions(start, end, positions, startNormal.isHorizontal(), > conn); > } >- > }
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 239053
:
106156
|
106157
|
106158
|
115822
|
203725
|
204137
|
204811
|
204812
| 204813 |
204841