Wrong arrow direction and no helpful rotation on association
Submitted by abbakus
Link to original bug (#613996)
Description
Wrong arrow direction and no helpful rotation on generic association between two classes when the class's layout is "UP/DOWN" and not "LEFT/RIGHT".
How to reproduce: Open dia, use UML set. Put 2 classes on the diagram, one on the upper side of the other, distant. Associate them with a generic association. Go to the properties of the association and be sure "show direction" is enabled and "A to B direction" is selected. Now move one class left and right.
Build Date & Platform: This is valid on DIA 0.97.1 on Gentoo/Linux Gnome.
Actual Results: The arrow has the wrong direction and is never rotated to help understanding the direction of the association.
Expected Results: The arrow is rotated 90 degrees to help the understanding of the association direction and/or 180 degrees to show the correct representation.
Additional Information: Proposed solution: Rotate 90 degrees the arrow when the classes associated are in a "mostly" UP/DOWN layout. Change (rotating 180 degrees) the arrow direction when the upper class is over the half of the bottom class to correct the wrong visualization (A to B association must be represented correctly whatever is the classes position).
Version: 0.97.x