mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 08:28:03 +02:00
svg: Reject raster sources
This hopefully fixes the raster-source test case crashing: cairo-svg-surface.c:2269: _cairo_svg_surface_emit_pattern: Assertion `!"reached"' failed. I cannot / did not test this change locally and rely on CI to tell me whether this works. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
9ea171b132
commit
0c9dacbc43
1 changed files with 1 additions and 1 deletions
|
|
@ -1138,7 +1138,7 @@ _cairo_svg_surface_analyze_operation (cairo_svg_surface_t *surface,
|
|||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
}
|
||||
|
||||
if (pattern->type == CAIRO_PATTERN_TYPE_MESH)
|
||||
if (pattern->type == CAIRO_PATTERN_TYPE_MESH || pattern->type == CAIRO_PATTERN_TYPE_RASTER_SOURCE)
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
/* SVG doesn't support extend reflect for image pattern */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue