Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 483884

Summary: RoundedRectangle.toPath() is not correct in case arcWith exceeds width or arcHeight exceeds height.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF GeometryAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.wienand
Version: 0.2.0   
Target Milestone: 4.0.0 / 3.11.0 (Neon) M4   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2015-12-08 04:52:51 EST
In case the arcWidth or arcHeight is greater than the width, the returned path of RoundedRectangle.toPath() should be empty. Currently, this is not respected and a non-empty path is returned.
Comment 1 Alexander Nyßen CLA 2015-12-08 05:11:42 EST
In fact, the interpretation of arc width and height within javafx.scene.shape.Rectangle seems to be quite different from our interpretation within RoundedRectangle. Maybe we should 'align' this (also for containment, etc.).
Comment 2 Matthias Wienand CLA 2015-12-10 07:12:20 EST
I changed the implementation accordingly and adjusted the Geometry <-> AWT conversion, as well as the related tests. The code is published on the master branch, therefore, I resolve this ticket as fixed for 3.11.0M4.