[gimp/soc-2009-dynamics] Only didive if the number of inputs is > 1 (/ 1 makes little sense)
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp/soc-2009-dynamics] Only didive if the number of inputs is > 1 (/ 1 makes little sense)
- Date: Wed, 14 Oct 2009 16:52:55 +0000 (UTC)
commit 793be22da944b02e67ad4c6ad7b40afd70184889
Author: Michael Natterer <mitch gimp org>
Date: Wed Oct 14 18:52:04 2009 +0200
Only didive if the number of inputs is > 1 (/ 1 makes little sense)
app/core/gimpdynamicsoutput.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpdynamicsoutput.c b/app/core/gimpdynamicsoutput.c
index 7eb23cd..85d021c 100644
--- a/app/core/gimpdynamicsoutput.c
+++ b/app/core/gimpdynamicsoutput.c
@@ -285,7 +285,7 @@ gimp_dynamics_output_get_linear_value (GimpDynamicsOutput *output,
factors++;
}
- if (factors > 0)
+ if (factors > 1)
result = total / factors;
#if 0
@@ -374,7 +374,7 @@ gimp_dynamics_output_get_angular_value (GimpDynamicsOutput *output,
factors++;
}
- if (factors > 0)
+ if (factors > 1)
result = total / factors;
#if 0
@@ -445,7 +445,7 @@ gimp_dynamics_output_get_aspect_value (GimpDynamicsOutput *output,
factors++;
}
- if (factors > 0)
+ if (factors > 1)
result = total / factors;
#if 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]