Bug 506718 - [All Diagrams] Rectilinear edges with rounded bendpoints gets corrupted
Summary: [All Diagrams] Rectilinear edges with rounded bendpoints gets corrupted
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: blockingpapyrusrt
Keywords:
Depends on: 511007
Blocks: 510578 507744
  Show dependency tree
 
Reported: 2016-10-28 10:49 EDT by Peter Cigehn CLA
Modified: 2017-08-31 09:48 EDT (History)
2 users (show)

See Also:


Attachments
Example model with corrupted edges (3.32 KB, application/x-zip-compressed)
2016-10-28 10:49 EDT, Peter Cigehn CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Cigehn CLA 2016-10-28 10:49:48 EDT
Created attachment 265105 [details]
Example model with corrupted edges

During the testing of importing legacy models into Papyrus it was discovered that lots of diagrams had layout issues, with corrupted edges, e.g. flows in activity diagrams and connectors in composite structure diagrams. After some investigation it was concluded that this is probably not related to the import itself, but an issue that can be repeated in new models directly in Papyrus.

What characterized these legacy models is that they use rectilinear routing. Also since the legacy tooling by default always uses rounded bendpoints (with the value 4), this apparently causes lots of issues with corrupted edges.

Steps to reproduce:

1) Create a new UML model in Papyrus
2) Create an activity diagram
3) In this activity diagram create two opaque actions
4) Draw a control flow Between these opaque actions. The effect is easiest seen for object flows going vertically.
5) Select the object flow and ensure that it uses "Rectilinear" routing and has "Rounded bendpoints" with the value 4 (other values can also be used)
6) Now edit the object flow a bit to ensure that it gets some bendpoints
7) Adjust gradually and the corruption will appear (easiest is to zoom to 400% when editing, but the corruption occurs at all zoom levels)

The attached model shows the corruption in both an activity diagram and in a composite structure diagram.
Comment 1 Ansgar Radermacher CLA 2017-01-25 02:30:39 EST
This is a GMF bug, see bug 511007. It has a trivial patch (finding the right place was less trivial), but I'm not sure when GMF will fix it and for which versions.