Bug 563337 – Rectangle Select Tool does not allow 1:1 fixed ratio

* libgimpwidgets/gimpnumberpairentry.c: When testing if the value
changed on focus-out we shall test against the current values, not
the default values.

svn path=/trunk/; revision=27914
This commit is contained in:
Martin Nordholts 2009-01-18 07:54:59 +00:00
parent d9b5207aa2
commit 4d55dd33ef
2 changed files with 10 additions and 9 deletions

View File

@ -1,3 +1,11 @@
2009-01-18 Martin Nordholts <martinn@svn.gnome.org>
Bug 563337 Rectangle Select Tool does not allow 1:1 fixed ratio
* libgimpwidgets/gimpnumberpairentry.c: When testing if the value
changed on focus-out we shall test against the current values, not
the default values.
2009-01-17 Michael Natterer <mitch@gimp.org>
* all files with a GPL header and all COPYING files:

View File

@ -851,15 +851,8 @@ gimp_number_pair_entry_events (GtkWidget *widget,
{
case PARSE_VALID:
{
gdouble default_left_value;
gdouble default_right_value;
gimp_number_pair_entry_get_default_values (entry,
&default_left_value,
&default_right_value);
if (default_left_value != left_value ||
default_right_value != right_value ||
if (priv->left_number != left_value ||
priv->right_number != right_value ||
force_user_override)
{
gimp_number_pair_entry_set_values (entry,