]> source.dussan.org Git - redmine.git/commitdiff
Fixed: SVG::Graph raises an error when using external stylesheet (#1402).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 9 Jun 2008 20:05:32 +0000 (20:05 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 9 Jun 2008 20:05:32 +0000 (20:05 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1524 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/SVG/Graph/Graph.rb

index 403a0202b65c1d0e4ec8d54c253a213f212211f6..a5e1ea732aa7c2db860e1ec3a626771131072fb1 100644 (file)
@@ -829,7 +829,7 @@ module SVG
         @doc << DocType.new( %q{svg PUBLIC "-//W3C//DTD SVG 1.0//EN" } +
           %q{"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"} )
         if style_sheet && style_sheet != ''
-          @doc << ProcessingInstruction.new( "xml-stylesheet",
+          @doc << Instruction.new( "xml-stylesheet",
             %Q{href="#{style_sheet}" type="text/css"} )
         end
         @root = @doc.add_element( "svg", {