mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-21 16:30:22 +01:00
clipper: Also need to guard against the incoming clip being NULL
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
fb9ed9bb0d
commit
29a302cc4b
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ _cairo_surface_clipper_set_clip (cairo_surface_clipper_t *clipper,
|
|||
assert (!_cairo_clip_is_all_clipped (clip));
|
||||
|
||||
/* XXX Is this an incremental clip? */
|
||||
if (clipper->clip &&
|
||||
if (clipper->clip && clip &&
|
||||
clip->num_boxes == clipper->clip->num_boxes &&
|
||||
memcmp (clip->boxes, clipper->clip->boxes,
|
||||
sizeof (cairo_box_t) * clip->num_boxes) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue