[gimp] Bug 683791 - Free select tool constraint key



commit 9b927ba0cd404d6adfba483d3ff7c416b32df201
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 14 11:04:21 2012 +0200

    Bug 683791 - Free select tool constraint key
    
    Fix condition that constrains angles to 15Â, its bracketing was wrong.

 app/tools/gimpfreeselecttool.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimpfreeselecttool.c b/app/tools/gimpfreeselecttool.c
index 280cfc4..2db7dc9 100644
--- a/app/tools/gimpfreeselecttool.c
+++ b/app/tools/gimpfreeselecttool.c
@@ -1385,8 +1385,8 @@ gimp_free_select_tool_modifier_key (GimpTool        *tool,
     {
       gimp_draw_tool_pause (draw_tool);
 
-      priv->constrain_angle = state & (gimp_get_constrain_behavior_mask () ?
-                                       TRUE : FALSE);
+      priv->constrain_angle = ((state & gimp_get_constrain_behavior_mask ()) ?
+                               TRUE : FALSE);
 
       priv->supress_handles = state & GDK_SHIFT_MASK ? TRUE : FALSE;
 
@@ -1415,8 +1415,8 @@ gimp_free_select_tool_active_modifier_key (GimpTool        *tool,
 
   gimp_draw_tool_pause (draw_tool);
 
-  priv->constrain_angle = state & (gimp_get_constrain_behavior_mask () ?
-                                   TRUE : FALSE);
+  priv->constrain_angle = ((state & gimp_get_constrain_behavior_mask ()) ?
+                           TRUE : FALSE);
 
   /* If we didn't came here due to a mouse release, immediately update
    * the position of the thing we move.



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