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.
This commit is contained in:
Ell 2018-06-14 12:27:06 -04:00
parent aeeddb7241
commit 47b7e7be7d
1 changed files with 2 additions and 0 deletions

View File

@ -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))