Index: fgeometry.c =================================================================== --- fgeometry.c (revision 7515) +++ fgeometry.c (revision 7516) @@ -99,7 +99,7 @@ * s = (d2y * ( p2x - p1x ) + d2x * ( p1y - p2y )) / ( d2y * d1x - d2x * d1y) */ - double t; + double t, s; double p1x, p1y, d1x, d1y; double p2x, p2y, d2x, d2y; @@ -116,7 +116,7 @@ t = (d1y * ( p1x - p2x ) + d1x * ( - p1y + p2y )) / ( d1y * d2x - d1x * d2y ); s = (d2y * ( p2x - p1x ) + d2x * ( p1y - p2y )) / ( d2y * d1x - d2x * d1y ); - /*printf("Intersection t=%f, s=%f\n", t, s); */ + /*pcb_trace("Intersection t=%f, s=%f\n", t, s); */ /* ret.x = p1x + s * d1x; ret.y = p1y + s * d1y;*/ @@ -125,7 +125,7 @@ ret.y = p2y + t * d2y; - /*printf("Intersection x=%f, y=%f\n", ret.x, ret.y);*/ + /*pcb_trace("Intersection x=%f, y=%f\n", ret.x, ret.y);*/ } return ret; } Index: rubberband.c =================================================================== --- rubberband.c (revision 7515) +++ rubberband.c (revision 7516) @@ -775,7 +775,7 @@ pcb_coord_t a = 0; /*-25945061;*/ x1 = ptr->Line->Point2.X; y1 = ptr->Line->Point2.Y; -/* printf ("%d\n", dy);*/ +/* pcb_trace("%d\n", dy);*/ x2 = ptr->Line->Point1.X + dx; y2 = ptr->Line->Point1.Y + dy + a; }