mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 04:28:02 +02:00
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:
parent
ec63a78394
commit
5ded4479d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue