[cairo-commit] src/cairo-surface-subsurface.c

M. Joonas Pihlaja joonas at kemper.freedesktop.org
Fri Aug 27 10:31:42 PDT 2010


 src/cairo-surface-subsurface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit df4b23ff74f3d22fb306f59cdba4dce6b0857cd2
Author: M Joonas Pihlaja <jpihlaja at cc.helsinki.fi>
Date:   Fri Aug 27 20:26:06 2010 +0300

    subsurface: Fix crash when acquiring a source image.
    
    The code is passing in the extra info received from
    the target surface's acquire_source() method to
    _cairo_surface_get_extents() rather than the acquired
    source surface itself.

diff --git a/src/cairo-surface-subsurface.c b/src/cairo-surface-subsurface.c
index c8b1a80..96459a7 100644
--- a/src/cairo-surface-subsurface.c
+++ b/src/cairo-surface-subsurface.c
@@ -337,7 +337,7 @@ _cairo_surface_subsurface_acquire_source_image (void                    *abstrac
     if (unlikely (status))
 	goto CLEANUP;
 
-    ret = _cairo_surface_get_extents (extra->image_extra, &target_extents);
+    ret = _cairo_surface_get_extents (extra->image, &target_extents);
     assert (ret);
 
     /* only copy if we need to perform sub-byte manipulation */


More information about the cairo-commit mailing list