Commit 984e3d8f authored by Michael Natterer's avatar Michael Natterer 😴

libgimpcolor: small optimization in gimp_color_transform_process_pixels()

no need to copy the alpha channel separately if src and dest are the
same.
parent cef26867
......@@ -323,7 +323,7 @@ gimp_color_transform_process_pixels (GimpColorTransform *transform,
}
/* copy the alpha channel */
if (babl_format_has_alpha (dest_format))
if (src != dest && babl_format_has_alpha (dest_format))
babl_process (babl_fish (src_format,
priv->dest_format),
src, dest, length);
......
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