Bug 213494

Summary: The copy constructor of PrecisionDimension loses precision
Product: [Tools] GEF Reporter: Stéphane Lizeray <lizeray>
Component: GEF-Legacy Draw2dAssignee: Alex Boyko <aboyko>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aboyko, ahunter.eclipse
Version: 3.4Keywords: contributed
Target Milestone: 3.4.0 (Ganymede) M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Fix the copy constructor. Fixes also enhancement 124904 ahunter.eclipse: iplog+

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