Fix return value of cairo_surface_write_to_png for unsupported formats

For some reason this was returning CAIRO_STATUS_NULL_POINTER.
Now fixed to return CAIRO_STATUS_INVALID_FORMAT.
This commit is contained in:
Carl Worth 2007-05-31 15:35:14 -07:00
parent ec63a78394
commit 5ded4479d6

View file

@ -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;
}