#2792 closed defect (fixed)
Connection lines are floating in diagram view of OMEdit
Reported by: | Owned by: | Adeel Asghar | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.1 |
Component: | OMEdit | Version: | trunk |
Keywords: | connection | Cc: |
Description
After making a connection in the diagram view of OMEdit, the connection can be moved with the mouse "like an object" or model. The connection line is then floating off the original connectors (see attached pic).
Attachments (2)
Change History (7)
comment:1 by , 10 years ago
by , 10 years ago
Attachment: | floating_connection.png added |
---|
The attached file shows a free floating connection line, which ist not attached to connectors any more
comment:2 by , 10 years ago
This misbehavior is present also on Windows (at least up to r22235).
It is very bad and worsened by the fact that no undo function is available in OMEdit.
I support the idea that it should be addressed before final release of OM 1.9.1.
A simple fix would be just to impede any connections to be moved by direct mouse drag action. In the case connecting lines are moved by OMEdit itself only when connected objects are moved by the user through mouse drag action.
follow-up: 5 comment:4 by , 10 years ago
Indeed this issue is not completely fixed.
Consider the following step-by-step procedure.
1) Open the component Modelica.Electrical.Analog.Examples.Rectifier.
2) Copy it in a user location so that it can be edited
3) In the diagram perspective select all (Ctr-A)
4) click on the arrow-down to move everything down.
RESULT: the model is totally disassembled! (see enclosed Rectifier.png)
If the movement is made using the mouse on a component icon (e.g. an inductor or a diode) the result is a bit better but still wrong.
Tested on r23134
by , 10 years ago
Attachment: | Rectifier.png added |
---|
comment:5 by , 10 years ago
Replying to ceraolo:
Indeed this issue is not completely fixed.
Consider the following step-by-step procedure.
1) Open the component Modelica.Electrical.Analog.Examples.Rectifier.
2) Copy it in a user location so that it can be edited
3) In the diagram perspective select all (Ctr-A)
4) click on the arrow-down to move everything down.
RESULT: the model is totally disassembled! (see enclosed Rectifier.png)
If the movement is made using the mouse on a component icon (e.g. an inductor or a diode) the result is a bit better but still wrong.
Tested on r23134
This is another problem. Actually components by default moves snap to grid however connection lines and shapes don't so the whole model will become a mess.
I have created a new ticket for it #2956.
This bug was detected for r21985, Ubuntu 14.04, 32 bit.