diff options
author | Benjamin Otte <otte@gnome.org> | 2009-11-25 15:57:46 +0100 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-11-25 16:02:20 +0100 |
commit | 3f0c9afa9760a90065c67927c63770f9bb8abe99 (patch) | |
tree | 104d308544175e69445d09c719cbdc25dac1e91b | |
parent | 0d8a04ef47426d87c7932f308a831e36b4ef7683 (diff) |
[clip] Don't ignore outermost clip when it clips everything
Fixes testcases clip-stroke-no-op and clip-fill-no-op added in
0d8a04ef47426d87c7932f308a831e36b4ef7683
-rw-r--r-- | src/cairo-clip.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cairo-clip.c b/src/cairo-clip.c index fd1e9e853..8d66a5ff9 100644 --- a/src/cairo-clip.c +++ b/src/cairo-clip.c @@ -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; |