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 169436 Details for
Bug 313731
Arbitrary polyline selection on non related click
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
Bug_313731 (text/plain), 991 bytes, created by
Alex Boyko
on 2010-05-20 22:26:49 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Alex Boyko
Created:
2010-05-20 22:26:49 EDT
Size:
991 bytes
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.draw2d >Index: src/org/eclipse/draw2d/geometry/Geometry.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Geometry.java,v >retrieving revision 1.7 >diff -u -r1.7 Geometry.java >--- src/org/eclipse/draw2d/geometry/Geometry.java 2 May 2010 13:08:20 -0000 1.7 >+++ src/org/eclipse/draw2d/geometry/Geometry.java 21 May 2010 02:25:15 -0000 >@@ -160,9 +160,9 @@ > int v1y = y2 - y1; > int v2x = px - x1; > int v2y = py - y1; >- int numerator = v2x * v1y - v1x * v2y; >- int denominator = v1x * v1x + v1y * v1y; >- int squareDistance = (int) ((long) numerator * numerator / denominator); >+ long numerator = (long) v2x * v1y - v1x * v2y; >+ long denominator = (long) v1x * v1x + v1y * v1y; >+ long squareDistance = numerator * numerator / denominator; > return squareDistance <= tolerance * tolerance; > } >
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 313731
:
169436
|
177978