app: in GimpOperationBlend, swap leftmost and rightmost colors when ...
... rendering a reversed gradient Finishes up the last commit.
This commit is contained in:
parent
4e2e60caf4
commit
a789c6e5e2
1 changed files with 9 additions and 0 deletions
|
|
@ -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! */
|
||||
|
|
|
|||
Loading…
Reference in a new issue