David Gravereaux wrote:
> Looks like I made a couple mistakes in my original bug report.
Have a patch file.
--
David Gravereaux <[EMAIL PROTECTED]> Have a cookie:->
There is no sadder sight in the world,
than to see a beautiful theory killed by brutal fact.
-- Thomas Huxley, biologist (1825-1895)
*** kicad-dev/common/wx/dcsvg.cpp.orig Mon Dec 5 09:47:52 2005
--- kicad-dev/common/wx/dcsvg.cpp Thu Jan 4 13:43:04 2007
***************
*** 129,148 ****
wxString s ;
s = wxT("<?xml version=\"1.0\" standalone=\"no\"?>") ; s = s +
newline ;
write(s);
! #if 0
! s = wxT("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 20010904//EN\" ") +
newline ;
write(s);
! s =
wxT("\"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\"> ")+ newline ;
write(s);
! #else
! s = wxT("<!DOCTYPE svg>") + newline ;
write(s);
! #endif
! s.Printf ( wxT("<svg width=\"%.2gcm\" height=\"%.2gcm\"
viewBox=\"0 0 %d %d \"> \n"), float(Width)/dpi*2.54, float(Height)/dpi*2.54,
Width, Height );
write(s);
! s = wxT("<title>SVG Picture created as ") +
wxFileNameFromPath(f) + wxT(" </title>") + newline ;
! write(s);
! s = wxString (wxT("<desc>Picture generated by wxSVG ")) +
wxSVGVersion + wxT(" </desc>")+ newline ;
write(s);
s = wxT("<g style=\"fill:black; stroke:black; stroke-width:1\">") +
newline ;
write(s);
--- 129,143 ----
wxString s ;
s = wxT("<?xml version=\"1.0\" standalone=\"no\"?>") ; s = s +
newline ;
write(s);
! s = wxT("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" ") +
newline ;
write(s);
! s =
wxT("\"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">")+ newline ;
write(s);
! s.Printf (
wxT("<svg\nxmlns=\"http://www.w3.org/2000/svg\"\n\twidth=\"%.2gcm\"
height=\"%.2gcm\" viewBox=\"0 0 %d %d\">\n"), float(Width)/dpi*2.54,
float(Height)/dpi*2.54, Width, Height );
write(s);
! s = wxT("<title>SVG Picture created as ") + wxFileNameFromPath(f) +
wxT("</title>") + newline ;
write(s);
! s = wxString (wxT("<desc>Picture generated by wxSVG ")) +
wxSVGVersion + wxT("</desc>")+ newline ;
write(s);
s = wxT("<g style=\"fill:black; stroke:black; stroke-width:1\">") +
newline ;
write(s);