[gimp] app: in GimpOperationBlend, fix left/right-most colors when offset > 0
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: in GimpOperationBlend, fix left/right-most colors when offset > 0
- Date: Mon, 9 Oct 2017 17:16:08 +0000 (UTC)
commit 0e9747380b40b3d65042d76667fc36d30357404c
Author: Ell <ell_se yahoo com>
Date: Mon Oct 9 13:11:25 2017 -0400
app: in GimpOperationBlend, fix left/right-most colors when offset > 0
app/operations/gimpoperationblend.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/operations/gimpoperationblend.c b/app/operations/gimpoperationblend.c
index e0b9517..0ad5494 100644
--- a/app/operations/gimpoperationblend.c
+++ b/app/operations/gimpoperationblend.c
@@ -913,11 +913,11 @@ gradient_render_pixel (gdouble x,
/* Blend the colors */
- if (factor < 0.0)
+ if (factor <= 0.0)
{
*color = rbd->leftmost_color;
}
- else if (factor > 1.0)
+ else if (factor >= 1.0)
{
*color = rbd->rightmost_color;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]