David Gravereaux wrote:
> David Gravereaux wrote:
> 
>> Looks like I made a couple mistakes in my original bug report.
> 
> Have a patch file.

whoops.. not the active in-use source file..  sorry.  Use this.  We might as 
well
claim svg 1.1 as it's the top of the food chain right now.

-- 
panic("Foooooooood fight!");
        linux-2.2.16/drivers/scsi/aha1542.c
*** kicad-dev/common/dcsvg.cpp.orig     Wed Jan  3 11:11:16 2007
--- kicad-dev/common/dcsvg.cpp  Thu Jan  4 14:18:59 2007
***************
*** 130,154 ****
          wxString s ;
          s = wxT("<?xml version=\"1.0\" standalone=\"no\"?>") ; s = s + 
newline ;
          write(s);
!         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);
  
                s.Printf ( wxT("<svg\n") );
          write(s);
-               s.Printf ( wxT("  xmlns:svg=\"http://www.w3.org/2000/svg\"\n";) 
);
-         write(s);
                s.Printf ( wxT("  xmlns=\"http://www.w3.org/2000/svg\"\n";) );
                write(s);
!               s.Printf ( wxT("  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.Printf ( wxT(">\n") );
          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);
--- 130,154 ----
          wxString s ;
          s = wxT("<?xml version=\"1.0\" standalone=\"no\"?>") ; s = s + 
newline ;
          write(s);
!         s = wxT("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" ") + 
newline ;
          write(s);
!         s = wxT("\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\";> ")+ 
newline ;
          write(s);
  
                s.Printf ( wxT("<svg\n") );
          write(s);
                s.Printf ( wxT("  xmlns=\"http://www.w3.org/2000/svg\"\n";) );
                write(s);
!               s.Printf ( wxT("  version=\"1.1\"\n") );
!               write(s);
!               s.Printf ( wxT("  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.Printf ( wxT(">\n") );
          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);

Reply via email to