diff --git a/src/cairo-png.c b/src/cairo-png.c index 76e901f67..35db3d9aa 100644 --- a/src/cairo-png.c +++ b/src/cairo-png.c @@ -175,7 +175,7 @@ write_png (cairo_surface_t *surface, png_color_type = PNG_COLOR_TYPE_GRAY; break; default: - status = CAIRO_STATUS_NULL_POINTER; + status = CAIRO_STATUS_INVALID_FORMAT; goto BAIL3; }