]> granicus.if.org Git - graphviz/commitdiff
Implement lcurve and rcurve.
authorEmden Gansner <erg@research.att.com>
Thu, 12 Jul 2012 16:27:28 +0000 (12:27 -0400)
committerEmden Gansner <erg@research.att.com>
Thu, 12 Jul 2012 16:27:28 +0000 (12:27 -0400)
lib/common/arrows.c

index 097b6763b77bb1f454eae179bc9a9b75c032f4ec..1667557ac5f4d5b0d6d4d4d8920c46d0c67a3e26 100644 (file)
@@ -636,6 +636,10 @@ static void arrow_type_curve(GVJ_t* job, pointf p, pointf u, double arrowsize, d
     AF[2].y = AF[3].y - w.y * 4.0 / 3.0;
 
     gvrender_polyline(job, a, 2);
+    if (flag & ARR_MOD_LEFT)
+       Bezier(AF, 3, 0.5, NULL, AF);
+    else if (flag & ARR_MOD_RIGHT)
+       Bezier(AF, 3, 0.5, AF, NULL);
     gvrender_beziercurve(job, AF, sizeof(AF) / sizeof(pointf), FALSE, FALSE, FALSE);
 }