app: in GimpOperationBlend, swap leftmost and rightmost colors when ...
... rendering a reversed gradient Finishes up the last commit.
This commit is contained in:
@ -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! */
|
||||||
|
|||||||
Reference in New Issue
Block a user