Commit 0e8b024f authored by Ell's avatar Ell

convert-format: make op pass-through when "format" property is NULL

... in which case the output format equals the input format.
parent 4c37a6d4
......@@ -58,7 +58,7 @@ operation_process (GeglOperation *operation,
input = (GeglBuffer*) gegl_operation_context_get_object (context, "input");
if (gegl_buffer_get_format (input) == o->format)
if (! o->format || gegl_buffer_get_format (input) == o->format)
gegl_operation_context_set_object (context, "output", G_OBJECT (input));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment