mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 19:18:12 +02:00
[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:
parent
0d8a04ef47
commit
3f0c9afa97
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue