Well... Unfortunately I realized I have to start on my actual project... and my efforts to use XSL docbook with svg diagrams are just taking waaay too much time. Attached is a patch that corrects the two svg arc problems I encountered...NOTE: Diagramdata->extents is still NOT correct for large-arc arcs in diagrams... but I really should get back to my actual project. There you go, Mike P.S. btw I will still use docbook but with no svg and dsssl transforms... -- /*******************************************************************\ | Mike Sowka o _ _ _ | | An Aspiring Engi"Nerd" _o /\_ _ \\o (_)\__/o (_) | | Carleton University _< \_ _>(_) (_)/<_ \_| \ _|/' \/ | | [EMAIL PROTECTED] (_)>(_) (_) (_) (_) (_)' _\o_ | | (home [EMAIL PROTECTED]) | \*******************************************************************/
--- render_svg.c 2002-08-30 19:08:19.000000000 -0400 +++ render_svg.c.~1.21.~ 2002-07-27 14:43:25.000000000 -0400 @@ -664,16 +664,7 @@ real x2=center->x + rx*cos(angle2*M_PI/180); real y2=center->y - ry*sin(angle2*M_PI/180); int swp = sweep(x1,y1,x2,y2,center->x,center->y); - int l_arc; - - if (angle2 > angle1) { - l_arc = (angle2 - angle1) > 180; - } else { - l_arc = (360 - angle2 + angle1) > 180; - } - - if (l_arc) - swp = !swp; + int l_arc = (angle2 - angle1) > 180; node = xmlNewChild(renderer->root, NULL, "path", NULL); @@ -703,16 +694,7 @@ real x2=center->x + rx*cos(angle2*M_PI/180); real y2=center->y - ry*sin(angle2*M_PI/180); int swp = sweep(x1,y1,x2,y2,center->x,center->y); - int l_arc; - - if (angle2 > angle1) { - l_arc = (angle2 - angle1) > 180; - } else { - l_arc = (360 - angle2 + angle1) > 180; - } - - if (l_arc) - swp = !swp; + int l_arc = (angle2 - angle1) > 180; node = xmlNewChild(renderer->root, NULL, "path", NULL);