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

Bug 529741

Summary: Wrong behaviors with selection by zone from right to left
Product: [Modeling] Sirius Reporter: Pierre Guilet <pierre.guilet>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: laurent.redor
Version: 5.1.0Keywords: triaged
Target Milestone: 5.1.1   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/115314
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=775070bf73bbd2e0d837ca8da88fd587d770fe61
Whiteboard:
Attachments:
Description Flags
project to reproduce
none
screenshot of the selection to do none

Description Pierre Guilet CLA 2018-01-12 09:54:17 EST
Created attachment 272245 [details]
project to reproduce

You can use a zone to select several elements as explained in Selection section of chapter https://www.eclipse.org/sirius/doc/user/diagrams/Diagrams.html#standardToolId.

But when using the tool from right to left, all intersected element that have not their right corner in the selection rectangle are not selected even if they intersect.

Steps to reproduce:
* Import project Selection from SelectionProject.zip (data copied from /org.eclipse.sirius.tests.swtbot/data/unit/hiddenElements/VP-3473)
* Open the diagram "New Diagram"
* Draw a selection rectangle from "just at the top of p1 and at the left of its right corner " to "just under the top edge of P1to the left of the original position". (see screenshot)
* KO --> P1 is not selected
Comment 1 Pierre Guilet CLA 2018-01-12 09:55:30 EST
Created attachment 272246 [details]
screenshot of the selection to do
Comment 3 Eclipse Genie CLA 2018-01-12 11:22:31 EST
New Gerrit change created: https://git.eclipse.org/r/115314
Comment 5 Pierre-Charles David CLA 2018-02-01 03:25:44 EST
Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details.