]> granicus.if.org Git - graphviz/commitdiff
Fix the previous fix.
authorerg <devnull@localhost>
Mon, 7 Feb 2011 16:00:40 +0000 (16:00 +0000)
committererg <devnull@localhost>
Mon, 7 Feb 2011 16:00:40 +0000 (16:00 +0000)
lib/common/routespl.c

index d005abd99b884f1d9533a0fb27a3fd196d769bc4..09f9bdd274b7d178ba91966606cc7cbb69c506d5 100644 (file)
@@ -236,8 +236,8 @@ simpleSplineRoute (pointf tp, pointf hp, Ppoly_t poly, int* n_spl_pts,
 
     eps[0].x = tp.x;
     eps[0].y = tp.y;
-    eps[1].x = tp.x;
-    eps[1].y = tp.y;
+    eps[1].x = hp.x;
+    eps[1].y = hp.y;
     if (Pshortestpath(&poly, eps, &pl) == -1)
         return NULL;