mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 12:08:16 +02:00
ps: fix padded image crash
This commit is contained in:
parent
f7d6d78f94
commit
9bfa9df2bb
1 changed files with 3 additions and 5 deletions
|
|
@ -2007,11 +2007,9 @@ _cairo_ps_surface_create_padded_image_from_image (cairo_ps_surface_t *
|
||||||
_cairo_fixed_integer_floor(box.p2.y) > w ||
|
_cairo_fixed_integer_floor(box.p2.y) > w ||
|
||||||
_cairo_fixed_integer_floor(box.p2.y) > h)
|
_cairo_fixed_integer_floor(box.p2.y) > h)
|
||||||
{
|
{
|
||||||
pad_image =
|
pad_image = _cairo_image_surface_create_with_content (source->base.content,
|
||||||
_cairo_image_surface_create_with_pixman_format (NULL,
|
rect.width,
|
||||||
source->pixman_format,
|
rect.height);
|
||||||
rect.width, rect.height,
|
|
||||||
0);
|
|
||||||
if (pad_image->status)
|
if (pad_image->status)
|
||||||
return pad_image->status;
|
return pad_image->status;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue