[gimp/gimp-2-10] Issue #1602 - Numeric selection size wrong after switching tools



commit 08294f9ea717943aa4a07fdc7716d17489f1073a
Author: Ell <ell_se yahoo com>
Date:   Thu Jun 14 12:27:06 2018 -0400

    Issue #1602 - Numeric selection size wrong after switching tools
    
    In GimpToolRectangle, call gimp_tool_rectangle_update_options()
    when the "[xy][12]" properties change, so that the "x", "y",
    "width", and "height" properties are updated accordingly.
    
    In particular, we set these properties when committing an empty
    rectangle select tool, to init the rectangle to the current
    selection bounds, and this call is necessary so that the "x", "y",
    "width", and "height" tool options are properly updated as well.
    
    (cherry picked from commit 47b7e7be7d62f90f5fceaf327dad48e4bead2fcf)

 app/display/gimptoolrectangle.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/app/display/gimptoolrectangle.c b/app/display/gimptoolrectangle.c
index c2057c5e95..fa48683489 100644
--- a/app/display/gimptoolrectangle.c
+++ b/app/display/gimptoolrectangle.c
@@ -1069,6 +1069,8 @@ gimp_tool_rectangle_notify (GObject    *object,
       ! strcmp (pspec->name, "y2"))
     {
       gimp_tool_rectangle_update_int_rect (rectangle);
+
+      gimp_tool_rectangle_update_options (rectangle);
     }
   else if (! strcmp  (pspec->name, "x") &&
            ! PIXEL_FEQUAL (private->x1, private->x))


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