Skip to content

Commit 2d1a137

Browse files
Revert "clip-boxes: Drop too-early return"
This reverts commit cb871c6. The original code is badly, but removing the early return leads to crashes. This code will need a lot more attention to get right, for now at least go back to the original behavior. Fixes: https://gitlab.freedesktop.org/cairo/cairo/issues/358#note_125270
1 parent 9752636 commit 2d1a137

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cairo-clip-boxes.c

+1
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ _cairo_clip_reduce_to_boxes (cairo_clip_t *clip)
524524
cairo_clip_path_t *clip_path;
525525
cairo_status_t status;
526526

527+
return clip;
527528
if (clip->path == NULL)
528529
return clip;
529530

0 commit comments

Comments
 (0)