Commit 0e974738 authored by Ell's avatar Ell

app: in GimpOperationBlend, fix left/right-most colors when offset > 0

parent c465e17e
...@@ -913,11 +913,11 @@ gradient_render_pixel (gdouble x, ...@@ -913,11 +913,11 @@ gradient_render_pixel (gdouble x,
/* Blend the colors */ /* Blend the colors */
if (factor < 0.0) if (factor <= 0.0)
{ {
*color = rbd->leftmost_color; *color = rbd->leftmost_color;
} }
else if (factor > 1.0) else if (factor >= 1.0)
{ {
*color = rbd->rightmost_color; *color = rbd->rightmost_color;
} }
......
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