]> granicus.if.org Git - graphviz/commitdiff
Fix assignment not allowed by Windows.
authorerg <devnull@localhost>
Mon, 7 Feb 2011 15:59:34 +0000 (15:59 +0000)
committererg <devnull@localhost>
Mon, 7 Feb 2011 15:59:34 +0000 (15:59 +0000)
lib/common/routespl.c

index 2da3bef58a3f95ac037fde8b1e80437781e99b63..d005abd99b884f1d9533a0fb27a3fd196d769bc4 100644 (file)
@@ -234,8 +234,10 @@ simpleSplineRoute (pointf tp, pointf hp, Ppoly_t poly, int* n_spl_pts,
     Pvector_t evs[2];
     int i;
 
-    eps[0] = (Ppoint_t)tp;
-    eps[1] = (Ppoint_t)hp;
+    eps[0].x = tp.x;
+    eps[0].y = tp.y;
+    eps[1].x = tp.x;
+    eps[1].y = tp.y;
     if (Pshortestpath(&poly, eps, &pl) == -1)
         return NULL;