diff options
Diffstat (limited to 'gfx/cairo/10-zero-sized-image.patch')
-rw-r--r-- | gfx/cairo/10-zero-sized-image.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gfx/cairo/10-zero-sized-image.patch b/gfx/cairo/10-zero-sized-image.patch new file mode 100644 index 0000000000..887341566a --- /dev/null +++ b/gfx/cairo/10-zero-sized-image.patch @@ -0,0 +1,13 @@ +diff --git a/gfx/cairo/cairo/src/cairo-image-surface.c b/gfx/cairo/cairo/src/cairo-image-surface.c +--- a/gfx/cairo/cairo/src/cairo-image-surface.c ++++ b/gfx/cairo/cairo/src/cairo-image-surface.c +@@ -1243,6 +1243,9 @@ static cairo_image_color_t + int x, y; + cairo_image_color_t color; + ++ if (image->width == 0 || image->height == 0) ++ return CAIRO_IMAGE_IS_MONOCHROME; ++ + if (image->format == CAIRO_FORMAT_A1) + return CAIRO_IMAGE_IS_MONOCHROME; + |