summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-09 20:05:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-09 20:05:32 +0000
commitcc9b8f78783bd9f9d8cdcc4c6f47e4416af83b3e (patch)
tree500a0042bc857d825bf809c0d00a39432d4f25a2 /lib
parent53b570398132d41202e75ce9dd3f6bb36dc2981e (diff)
downloadredmine-cc9b8f78783bd9f9d8cdcc4c6f47e4416af83b3e.tar.gz
redmine-cc9b8f78783bd9f9d8cdcc4c6f47e4416af83b3e.zip
Fixed: SVG::Graph raises an error when using external stylesheet (#1402).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1524 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/SVG/Graph/Graph.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SVG/Graph/Graph.rb b/lib/SVG/Graph/Graph.rb
index 403a0202b..a5e1ea732 100644
--- a/lib/SVG/Graph/Graph.rb
+++ b/lib/SVG/Graph/Graph.rb
@@ -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", {