diff options
Diffstat (limited to 'src/test-wrapping-surface.c')
-rw-r--r-- | src/test-wrapping-surface.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test-wrapping-surface.c b/src/test-wrapping-surface.c index d300116a0..44083aac1 100644 --- a/src/test-wrapping-surface.c +++ b/src/test-wrapping-surface.c @@ -59,9 +59,11 @@ cairo_surface_t * _cairo_test_wrapping_surface_create (cairo_surface_t *target) { test_wrapping_surface_t *surface; + cairo_status_t status; - if (unlikely (target->status)) - return _cairo_surface_create_in_error (target->status); + status = _cairo_surface_status (target); + if (unlikely (status)) + return _cairo_surface_create_in_error (status); surface = malloc (sizeof (test_wrapping_surface_t)); if (unlikely (surface == NULL)) |