From 1327ec232cfca675647fb03876487c92fb638354 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 28 Oct 2008 10:00:38 +0000 Subject: [PATCH] [image] Remove invalid assert. The assert can fail for an error surface. TODO: Decide what values should be returned from getters for error surfaces. --- src/cairo-image-surface.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index 3de056882..4aad77f05 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -572,8 +572,6 @@ cairo_image_surface_get_format (cairo_surface_t *surface) return 0; } - assert (CAIRO_FORMAT_VALID (image_surface->format)); - return image_surface->format; }