[gimp] app: fix an error in aspect ratio dynamics



commit 8136bdb9146c1e989b67512ad9cdcc9cf1f78074
Author: Alexia Death <alexiadeath gmail com>
Date:   Mon Feb 14 21:16:48 2011 +0200

    app: fix an error in aspect ratio dynamics

 app/core/gimpdynamicsoutput.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpdynamicsoutput.c b/app/core/gimpdynamicsoutput.c
index 835b0e1..dbd6943 100644
--- a/app/core/gimpdynamicsoutput.c
+++ b/app/core/gimpdynamicsoutput.c
@@ -606,8 +606,8 @@ gimp_dynamics_output_get_aspect_value (GimpDynamicsOutput *output,
     {
       gdouble direction = gimp_curve_map_value (output->direction_curve, coords->direction);
 
-      if (((direction > 0.875) && (direction < 0.0)) ||
-          ((direction > 0.0) && (direction < 0.125)) ||
+      if (((direction > 0.875) && (direction <= 1.0)) ||
+          ((direction > 0.0) && (direction < 0.125))  ||
           ((direction > 0.375) && (direction < 0.625)))
         sign = -1.0;
 
@@ -631,8 +631,8 @@ gimp_dynamics_output_get_aspect_value (GimpDynamicsOutput *output,
     {
       gdouble wheel = gimp_curve_map_value (output->wheel_curve, coords->wheel);
 
-      if (((wheel > 0.875) && (wheel < 0.0)) ||
-          ((wheel > 0.0) && (wheel < 0.125)) ||
+      if (((wheel > 0.875) && (wheel <= 1.0)) ||
+          ((wheel > 0.0) && (wheel < 0.125))  ||
           ((wheel > 0.375) && (wheel < 0.625)))
         sign = -1.0;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]