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

Bug 510296

Summary: Multi selection bounds are incorrectly considering bendable parts without free bend points.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.1.0   
Target Milestone: 5.0.0 (Oxygen) M5   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2017-01-11 13:16:32 EST
The multi selection bounds enclose the area where selected parts are positioned and sized. If a selected part does not have a specified position, it should not be considered when computing the multi selection bounds. However, for bendable parts without free bend points (i.e. for which no position can be determined) the origin (0, 0) is included in the multi selection bounds. The ResizableTransformableBoundsProvider should be fixed so that only parts contribute to the resizable-transformable-bounds if a position can be determined for them.
Comment 1 Matthias Wienand CLA 2017-01-13 07:50:14 EST
I changed the implementation of ResizableTransformableBoundsProvider so that null is returned as the bounds for bendable parts that have no free bend points. Accordingly, I adjusted the DefaultSelectionHandlePartFactory and ResizeTransformSelectedOnHandleDragPolicy to only consider selected parts for which resizable-transformable bounds can be determined. The code is published on the master branch, therefore, I resolve this ticket as fixed for 5.0.0 M5.