diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /gfx/cairo/10-zero-sized-image.patch | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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; + |