summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuel Pacaud <emmanuel.pacaud@free.fr>2006-05-03 14:53:25 +0200
committerEmmanuel Pacaud <emmanuel.pacaud@free.fr>2006-05-03 14:53:25 +0200
commite91b2c87ccf75e1c4935f1593dfdd10b1992de34 (patch)
treed863164d4d0b55e1583a05c6701a91f13151dbaf /src
parent5336cf5a984cdeb4d4887cd3c643a3e051aca338 (diff)
SVG: Emit "svg" version in document_finish.
At least when there's something valid in document->svg_version.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-svg-surface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c
index a464c3dff..6cc5e98b3 100644
--- a/src/cairo-svg-surface.c
+++ b/src/cairo-svg-surface.c
@@ -1693,8 +1693,6 @@ _cairo_svg_document_create (cairo_output_stream_t *output_stream,
xmlSetProp (node, CC2XML ("xmlns"), CC2XML ("http://www.w3.org/2000/svg"));
xmlSetProp (node, CC2XML ("xmlns:xlink"), CC2XML ("http://www.w3.org/1999/xlink"));
- xmlSetProp (node, CC2XML ("version"),
- CC2XML (_cairo_svg_internal_version_strings [document->svg_version]));
document->alpha_filter = FALSE;
@@ -1754,6 +1752,9 @@ _cairo_svg_document_finish (cairo_svg_document_t *document)
if (document->finished)
return CAIRO_STATUS_SUCCESS;
+ xmlSetProp (document->xml_node_main, CC2XML ("version"),
+ CC2XML (_cairo_svg_internal_version_strings [document->svg_version]));
+
xml_output_buffer = xmlOutputBufferCreateIO ((xmlOutputWriteCallback) _cairo_svg_document_write,
(xmlOutputCloseCallback) NULL,
(void *) document->output_stream,