[cairo-commit] src/cairo-clip-boxes.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Mar 3 08:04:29 UTC 2019


 src/cairo-clip-boxes.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2d1a137f3d27b60538c58b25e867288c7b0b61bc
Author: Bryce Harrington <bryce at bryceharrington.org>
Date:   Sun Mar 3 00:01:34 2019 -0800

    Revert "clip-boxes:  Drop too-early return"
    
    This reverts commit cb871c6c692af68d8e0bf9e26472af45435f8a2c.
    
    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

diff --git a/src/cairo-clip-boxes.c b/src/cairo-clip-boxes.c
index d6e29fa3a..aaddeb7f7 100644
--- a/src/cairo-clip-boxes.c
+++ b/src/cairo-clip-boxes.c
@@ -524,6 +524,7 @@ _cairo_clip_reduce_to_boxes (cairo_clip_t *clip)
     cairo_clip_path_t *clip_path;
     cairo_status_t status;
 
+	return clip;
     if (clip->path == NULL)
 	return clip;
 


More information about the cairo-commit mailing list