From: erg Date: Mon, 7 Feb 2011 15:59:34 +0000 (+0000) Subject: Fix assignment not allowed by Windows. X-Git-Tag: LAST_LIBGRAPH~32^2~1067 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f1b53674a9ca7daf0097c9acfc2366721002047;p=graphviz Fix assignment not allowed by Windows. --- diff --git a/lib/common/routespl.c b/lib/common/routespl.c index 2da3bef58..d005abd99 100644 --- a/lib/common/routespl.c +++ b/lib/common/routespl.c @@ -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;