[cairo-svg-surface] Missing status check.

Check and, if necessary, propagate the error status - do not allow the
status to be overwritten, potentially masking the original error.
This commit is contained in:
Chris Wilson 2008-03-31 19:09:21 +01:00
parent 94db91b65e
commit cebb1eef43

View file

@ -2109,6 +2109,9 @@ _cairo_svg_surface_stroke (void *abstract_dst,
_cairo_output_stream_printf (surface->xml_node, "<path style=\"fill: none; ");
status = _cairo_svg_surface_emit_stroke_style (surface->xml_node, surface, op,
source, stroke_style, ctm_inverse);
if (status)
return status;
_cairo_output_stream_printf (surface->xml_node, "\" ");
status = _cairo_svg_surface_emit_path (surface->xml_node, path, ctm_inverse);