mirror of https://github.com/GNOME/gimp.git
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:
parent
aeeddb7241
commit
47b7e7be7d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue