diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-08-18 14:21:27 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-08-18 14:21:27 +0000 |
| commit | ad173a5a5d20632a5c440c6656d461191a99d3c8 (patch) | |
| tree | 267786a3bcf5e9f0c1aae9408be723c9b58cdbce /src/dialogs/clonetiler.cpp | |
| parent | added a new LPE and a new regular extension (diff) | |
| download | inkscape-ad173a5a5d20632a5c440c6656d461191a99d3c8.tar.gz inkscape-ad173a5a5d20632a5c440c6656d461191a99d3c8.zip | |
since all values are 0..1, shifting gamma up must use power<1 so that the values are actually increased by it
(bzr r6695)
Diffstat (limited to 'src/dialogs/clonetiler.cpp')
| -rw-r--r-- | src/dialogs/clonetiler.cpp | 4 |
1 files 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); |
