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

... rendering a reversed gradient

Finishes up the last commit.
This commit is contained in:
Ell
2017-10-09 13:03:50 -04:00
parent 4e2e60caf4
commit a789c6e5e2

View File

@ -1077,6 +1077,15 @@ gimp_operation_blend_process (GeglOperation *operation,
gimp_gradient_segment_get_last ( gimp_gradient_segment_get_last (
rbd.gradient->segments), rbd.gradient->segments),
&rbd.rightmost_color); &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! */ /* Render the gradient! */