From: buliabyak Date: Mon, 18 Aug 2008 14:21:27 +0000 (+0000) Subject: since all values are 0..1, shifting gamma up must use power<1 so that the values... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=99ddece8140d910674312b0bb6629800d0d3d975;p=inkscape.git since all values are 0..1, shifting gamma up must use power<1 so that the values are actually increased by it --- 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);