[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jri at jriddell.org
Thu Oct 16 09:08:08 UTC 2003


CVS commit by jriddell: 

Make realisations have same arrow as generalisations and give a more readable arrow size.


  M +6 -4      linepath.cpp   1.21


--- kdesdk/umbrello/umbrello/linepath.cpp  #1.20:1.21
@@ -401,8 +401,10 @@ void LinePath::calculateHead() {
         int halfLength = 10;
         double arrowAngle = 0.5 * atan(sqrt(3.0) / 3.0);
-        if (getAssocType() == at_Generalization)
-        {
+        if (getAssocType() != at_Aggregation && getAssocType() != at_Composition) {
                 arrowAngle *= 2;        // wider
                 halfLength += 3;        // longer
+        } else {
+                arrowAngle *= 1.5;      // wider
+                halfLength += 1;        // longer
         }
         double slope = atan2(deltaY, deltaX);   //slope of line






More information about the umbrello-devel mailing list