[PATCH] graphviz bugfix broke doxygen

John Ellson <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <[email protected]>
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)






-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.