mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 10:48:28 +02:00
[win32-printing] bail out early if we don't have anything to do in paint_surf
This commit is contained in:
parent
d72bb8c12e
commit
28412f780e
1 changed files with 5 additions and 0 deletions
|
|
@ -522,6 +522,11 @@ _cairo_win32_printing_surface_paint_image_pattern (cairo_win32_surface_t *surf
|
|||
goto FINISH2;
|
||||
}
|
||||
|
||||
if (image->width == 0 || image->height == 0) {
|
||||
status = CAIRO_STATUS_SUCCESS;
|
||||
goto FINISH2;
|
||||
}
|
||||
|
||||
if (image->format != CAIRO_FORMAT_RGB24) {
|
||||
opaque_surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24,
|
||||
image->width,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue