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 85581 Details for
Bug 213494
The copy constructor of PrecisionDimension loses precision
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Fix the copy constructor. Fixes also enhancement 124904
patch-precdim.txt (text/plain), 1011 bytes, created by
Stéphane Lizeray
on 2007-12-19 12:31:28 EST
(
hide
)
Description:
Fix the copy constructor. Fixes also enhancement 124904
Filename:
MIME Type:
Creator:
Stéphane Lizeray
Created:
2007-12-19 12:31:28 EST
Size:
1011 bytes
patch
obsolete
>Index: PrecisionDimension.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/PrecisionDimension.java,v >retrieving revision 1.7 >diff -u -r1.7 PrecisionDimension.java >--- PrecisionDimension.java 11 May 2005 19:25:02 -0000 1.7 >+++ PrecisionDimension.java 19 Dec 2007 17:17:37 -0000 >@@ -48,8 +48,15 @@ > */ > public PrecisionDimension(Dimension d) { > super(d); >- preciseHeight = d.height; >- preciseWidth = d.width; >+ if (d instanceof PrecisionDimension){ >+ PrecisionDimension precDim = (PrecisionDimension)d; >+ preciseHeight = precDim.preciseHeight; >+ preciseWidth = precDim.preciseWidth; >+ updateInts(); >+ } else { >+ preciseHeight = d.height; >+ preciseWidth = d.width; >+ } > } > > /** >@@ -69,4 +76,8 @@ > height = (int)Math.floor(preciseHeight + 0.000000001); > } > >+public Dimension getCopy() { >+ return new PrecisionDimension(this); >+} >+ > }
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 Raw
Flags:
ahunter.eclipse
:
iplog+
Actions:
View
Attachments on
bug 213494
: 85581