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 232883 Details for
Bug 324301
Label position incorrect for curved connections
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
MidpointLocator path
midpoint.locator.patch (text/plain), 995 bytes, created by
Tamas Szabo
on 2013-06-28 10:01:46 EDT
(
hide
)
Description:
MidpointLocator path
Filename:
MIME Type:
Creator:
Tamas Szabo
Created:
2013-06-28 10:01:46 EDT
Size:
995 bytes
patch
obsolete
>diff --git a/org.eclipse.draw2d/src/org/eclipse/draw2d/MidpointLocator.java b/org.eclipse.draw2d/src/org/eclipse/draw2d/MidpointLocator.java >index ffec794..58dc565 100644 >--- a/org.eclipse.draw2d/src/org/eclipse/draw2d/MidpointLocator.java >+++ b/org.eclipse.draw2d/src/org/eclipse/draw2d/MidpointLocator.java >@@ -52,7 +52,8 @@ > > /** > * Returns the point of reference associated with this locator. This point >- * will be midway between points at 'index' and 'index' + 1. >+ * will be midway between the point at position 'index' and the point at the >+ * last position. > * > * @return the reference point > * @since 2.0 >@@ -61,7 +62,7 @@ > Connection conn = getConnection(); > Point p = Point.SINGLETON; > Point p1 = conn.getPoints().getPoint(getIndex()); >- Point p2 = conn.getPoints().getPoint(getIndex() + 1); >+ Point p2 = conn.getPoints().getPoint(conn.getPoints().size() - 1); > conn.translateToAbsolute(p1); > conn.translateToAbsolute(p2); > p.x = (p2.x - p1.x) / 2 + p1.x;
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 324301
: 232883