From a4526020844d04740a1d123d6896c01f7c648c97 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 23 Sep 2015 14:40:18 -0400 Subject: [PATCH] Bug 1202696 - check surface status in _cairo_surface_get_extents. r=jmuizelaar --HG-- extra : rebase_source : bf9bf49cf9829370ab20567f10ce4c20fa5c9fca --- gfx/cairo/cairo/src/cairo-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/cairo/cairo/src/cairo-surface.c b/gfx/cairo/cairo/src/cairo-surface.c index 54b7363e05db..92dfd7fe2822 100644 --- a/gfx/cairo/cairo/src/cairo-surface.c +++ b/gfx/cairo/cairo/src/cairo-surface.c @@ -2569,7 +2569,7 @@ _cairo_surface_get_extents (cairo_surface_t *surface, cairo_bool_t bounded; bounded = FALSE; - if (surface->backend->get_extents != NULL) + if (! surface->status && surface->backend->get_extents != NULL) bounded = surface->backend->get_extents (surface, extents); if (! bounded)