mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 21:38:03 +02:00
Fix generating syntactically invalid SVG files
This commit is contained in:
parent
8c08f499bd
commit
18c0196414
1 changed files with 4 additions and 1 deletions
|
|
@ -1642,6 +1642,10 @@ _cairo_svg_surface_emit_recording_surface (cairo_svg_document_t *document,
|
|||
extents.height);
|
||||
}
|
||||
|
||||
if (source->base.content == CAIRO_CONTENT_ALPHA) {
|
||||
_cairo_svg_surface_emit_alpha_filter (document);
|
||||
}
|
||||
|
||||
_cairo_output_stream_printf (document->xml_node_defs,
|
||||
"<g id=\"surface%d\"",
|
||||
source_id);
|
||||
|
|
@ -1653,7 +1657,6 @@ _cairo_svg_surface_emit_recording_surface (cairo_svg_document_t *document,
|
|||
}
|
||||
|
||||
if (source->base.content == CAIRO_CONTENT_ALPHA) {
|
||||
_cairo_svg_surface_emit_alpha_filter (document);
|
||||
_cairo_output_stream_printf (document->xml_node_defs,
|
||||
" filter=\"url(#alpha)\"");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue