[Doxygen-develop] [PATCH] graphviz bugfix broke doxygen
Brought to you by:
dimitri
From: John E. <el...@re...> - 2006-03-03 15:53:19
|
There is a change in the Postscript output of dot from graphviz-2.9.20060302.0540 (and later) to use %%BoundingBox: (atend) so as to properly support multiple graphs in a single PostScript file according to page 39 of: http://partners.adobe.com/public/developer/en/ps/5001.DSC_Spec.pdf Unfortunately this breaks doxygen which expects the first %%BoundingBox: record to contain the coordinates. To fix this in a backward compatible way I suggest that doxygen should use the %%PageBoundingBox instead. John Index: src/dot.cpp =================================================================== RCS file: /cvsroot/doxygen/src/dot.cpp,v retrieving revision 1.107 diff -r1.107 dot.cpp 277c277 < if (strncmp(buf,"%%BoundingBox: ",15)==0) --- > if (strncmp(buf,"%%PageBoundingBox: ",19)==0) 280c280 < if (sscanf(buf,"%%%%BoundingBox: %d %d %d %d",&x,&y,width,height)!=4) --- > if (sscanf(buf,"%%%%PageBoundingBox: %d %d %d %d",&x,&y,width,height)!=4) |