[clip] Don't ignore outermost clip when it clips everything

Fixes testcases clip-stroke-no-op and clip-fill-no-op added in
0d8a04ef47
This commit is contained in:
Benjamin Otte 2009-11-25 15:57:46 +01:00
parent 0d8a04ef47
commit 3f0c9afa97

View file

@ -953,7 +953,7 @@ _cairo_clip_path_to_boxes (cairo_clip_path_t *clip_path,
return status;
}
while ((clip_path = clip_path->prev) != NULL) {
while (num_boxes > 0 && (clip_path = clip_path->prev) != NULL) {
cairo_box_t box;
if (clip_path->region != NULL) {
@ -992,9 +992,6 @@ _cairo_clip_path_to_boxes (cairo_clip_path_t *clip_path,
if (unlikely (status))
return status;
}
if (num_boxes == 0)
break;
}
*count = num_boxes;