summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa4d046)
raw | patch | inline | side by side (parent: fa4d046)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 18 Aug 2008 14:21:27 +0000 (14:21 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 18 Aug 2008 14:21:27 +0000 (14:21 +0000) |
src/dialogs/clonetiler.cpp | patch | blob | history |
index 048635bb97cca014489778b7cc5aa2e08f3ebacc..f3524d65edc1e724f22f13540573430646bd6525 100644 (file)
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);