Bug 213494 - The copy constructor of PrecisionDimension loses precision
Summary: The copy constructor of PrecisionDimension loses precision
Status: RESOLVED FIXED
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4.0 (Ganymede) M5   Edit
Assignee: Alex Boyko CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 213495 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-19 12:31 EST by Stéphane Lizeray CLA
Modified: 2008-09-18 13:34 EDT (History)
2 users (show)

See Also:


Attachments
Fix the copy constructor. Fixes also enhancement 124904 (1011 bytes, text/plain)
2007-12-19 12:31 EST, Stéphane Lizeray CLA
ahunter.eclipse: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Lizeray CLA 2007-12-19 12:31:28 EST
Created attachment 85581 [details]
Fix the copy constructor. Fixes also enhancement 124904

Build ID: N/A

Steps To Reproduce:
PrecisionDimension source = new PrecisionDimensio(0.1,0.1);
PrecisionDimension copy = new PrecisionDimension(source);
System.out.println(copy.preciseHeight);

---> print : 0.0
It should be 0.1


More information:
The copy constructor should test if its parameter is an instance of PrecisionDimension. Similar to PrecisionPoint constructor
Comment 1 Anthony Hunter CLA 2007-12-19 15:42:12 EST
*** Bug 213495 has been marked as a duplicate of this bug. ***
Comment 2 Alex Boyko CLA 2008-01-02 14:49:00 EST
This should be fixed with the fix that was committed for bug 212460
Comment 3 Anthony Hunter CLA 2008-02-08 15:35:07 EST
need to reopen to assign as contributed by Alex.
Comment 4 Anthony Hunter CLA 2008-02-08 15:35:51 EST
fixed with the fix that was contributed for bug 212460