Commit a789c6e5 authored by Ell's avatar Ell

app: in GimpOperationBlend, swap leftmost and rightmost colors when ...

... rendering a reversed gradient

Finishes up the last commit.
parent 4e2e60ca
......@@ -1077,6 +1077,15 @@ gimp_operation_blend_process (GeglOperation *operation,
gimp_gradient_segment_get_last (
rbd.gradient->segments),
&rbd.rightmost_color);
if (rbd.reverse)
{
GimpRGB temp;
temp = rbd.leftmost_color;
rbd.leftmost_color = rbd.rightmost_color;
rbd.rightmost_color = temp;
}
}
/* Render the gradient! */
......
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