mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-24 13:40:12 +01:00
[dfb] correctly handle case of 0 boxes in clip region
This commit is contained in:
parent
a0cfd9962f
commit
a097bafd28
1 changed files with 2 additions and 0 deletions
|
|
@ -1442,6 +1442,8 @@ _cairo_directfb_surface_set_clip_region (void *abstract_surface,
|
|||
int i;
|
||||
|
||||
status = _cairo_region_get_boxes (region, &n_boxes, &boxes);
|
||||
if (n_boxes == 0)
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue