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

Bug 508936

Summary: Straighten actions: Possible inversion between top and bottom, or left and right
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact: Jessy Mallet <jessy.mallet>
Severity: major    
Priority: P3 CC: jessy.mallet, laurent.fasani, maxime.porhel
Version: 4.1.0Keywords: triaged
Target Milestone: 5.0.0   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/86742
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=41fbe2a35b1ccb78cfcafc4c2d6e6fdbcfdea28c
Whiteboard:
Bug Depends on: 508676    
Bug Blocks:    

Description Laurent Redor CLA 2016-12-08 11:49:16 EST
+++ This bug was initially created as a clone of Bug #508676 +++

Sometimes, when the source and the target of the edge are nodes, the straighten to the right action is a straighten to left action (and conversely). And the straighten to top action is a straighten to bottom action (and conversely).

Steps to reproduce:
* Import the project "StraightenTo" (from StraightenTo.zip)
* Open the diagram "new useCase"
* Select the edge21 (between b_c8_1_2 and b_c9_2)
* Loot at the contextual menus "Layout / Straighten", only "To top" is enabled: KO, only "To bottom" must be enabled.
* Launch this action, a "straighten to bottom" is launched.
Comment 1 Eclipse Genie CLA 2016-12-08 11:52:46 EST
New Gerrit change created: https://git.eclipse.org/r/86742
Comment 3 Jessy Mallet CLA 2017-05-15 10:00:42 EDT
Validated with Sirius 5.0.0.201705121003
Comment 4 Jessy Mallet CLA 2017-05-19 08:24:19 EDT
Validated with Sirius 5.0.0.201705151305
Comment 5 Pierre-Charles David CLA 2017-06-29 03:32:30 EDT
Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details.