diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-10 13:22:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-10 14:06:16 +0100 |
commit | 69c1ec9f131936ca5fcdb48bd0f957b2c1f6d52c (patch) | |
tree | fa4ce169b1820d144ac2b70cd433b9d5ff43d3ac /src/cairo-surface-wrapper.c | |
parent | b13266ba0fcd275a5936f31f69405b7e25853ef6 (diff) | |
download | cairo-69c1ec9f131936ca5fcdb48bd0f957b2c1f6d52c.tar.gz |
script: Compile fix
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-surface-wrapper.c')
-rw-r--r-- | src/cairo-surface-wrapper.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cairo-surface-wrapper.c b/src/cairo-surface-wrapper.c index 9ed562012..0ce80a50c 100644 --- a/src/cairo-surface-wrapper.c +++ b/src/cairo-surface-wrapper.c @@ -591,8 +591,11 @@ _cairo_surface_wrapper_init (cairo_surface_wrapper_t *wrapper, wrapper->has_extents = FALSE; wrapper->extents.x = wrapper->extents.y = 0; - wrapper->needs_transform = - ! _cairo_matrix_is_identity (&wrapper->target->device_transform); + wrapper->needs_transform = FALSE; + if (target) { + wrapper->needs_transform = + ! _cairo_matrix_is_identity (&target->device_transform); + } } void |