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.
This commit is contained in:
M Joonas Pihlaja 2010-08-27 20:26:06 +03:00
parent 2d146867dc
commit df4b23ff74

View file

@ -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 */