From 99ddece8140d910674312b0bb6629800d0d3d975 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 18 Aug 2008 14:21:27 +0000 Subject: [PATCH] since all values are 0..1, shifting gamma up must use power<1 so that the values are actually increased by it --- src/dialogs/clonetiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp index 048635bb9..f3524d65e 100644 --- a/src/dialogs/clonetiler.cpp +++ b/src/dialogs/clonetiler.cpp @@ -1405,10 +1405,10 @@ clonetiler_apply( GtkWidget */*widget*/, void * ) if (gamma_picked != 0) { double power; - if (gamma_picked < 0) + if (gamma_picked > 0) power = 1/(1 + fabs(gamma_picked)); else - power = 1 + gamma_picked; + power = 1 + fabs(gamma_picked); val = pow (val, power); r = pow (r, power); -- 2.30.2