[gimp] Adjust Bug 559716 bugfix to not test exact double equality



commit cc04620b96b2c80b682dba6c890ff5b9b2277c37
Author: Omari Stephens <xsdg xsdg org>
Date:   Mon Mar 21 14:37:28 2011 +0000

    Adjust Bug 559716 bugfix to not test exact double equality

 app/tools/gimprectangletool.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimprectangletool.c b/app/tools/gimprectangletool.c
index b14879f..4c2dbb6 100644
--- a/app/tools/gimprectangletool.c
+++ b/app/tools/gimprectangletool.c
@@ -2348,16 +2348,16 @@ gimp_rectangle_tool_update_options (GimpRectangleTool *rect_tool,
 
   g_object_freeze_notify (G_OBJECT (options));
 
-  if (old_x != x1)
+  if (! FEQUAL (old_x, x1))
     g_object_set (options, "x", x1, NULL);
 
-  if (old_y != y1)
+  if (! FEQUAL (old_y, y1))
     g_object_set (options, "y", y1, NULL);
 
-  if (old_width != x2 - x1)
+  if (! FEQUAL (old_width, x2 - x1))
     g_object_set (options, "width", x2 - x1, NULL);
 
-  if (old_height != y2 - y1)
+  if (! FEQUAL (old_height, y2 - y1))
     g_object_set (options, "height", y2 - y1, NULL);
 
   g_object_thaw_notify (G_OBJECT (options));



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