[gimp] app: improve spinscale target calculation



commit 90a024be54dc0a7eb6c7b2f79bc83d52f9b704f3
Author: Ell <ell_se yahoo com>
Date:   Wed Oct 18 15:29:40 2017 -0400

    app: improve spinscale target calculation
    
    So pedantic... :)

 app/widgets/gimpspinscale.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index 24b4032..a90d7ef 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -563,12 +563,12 @@ gimp_spin_scale_get_target (GtkWidget *widget,
   pango_layout_get_pixel_extents (gtk_entry_get_layout (GTK_ENTRY (widget)),
                                   NULL, &logical);
 
-  if (x > layout_x && x < layout_x + logical.width &&
-      y > layout_y && y < layout_y + logical.height)
+  if (x >= layout_x && x < layout_x + logical.width &&
+      y >= layout_y && y < layout_y + logical.height)
     {
       return TARGET_NUMBER;
     }
-  else if (y > allocation.height / 2)
+  else if (y >= allocation.height / 2)
     {
       return TARGET_LOWER;
     }


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