Commit 3c1516ea authored by Jehan's avatar Jehan

app: mirror positions 0.0 are accepted.

This value is actually used as a special value when removing a guide to
get rid of a symmetry, in particular it is set in the guides' callback
gimp_mirror_guide_removed_cb() for "removed" signal.
If not setting to 0, when adding back a symmetry, it starts with weird
low or high values near to border (whereas when set to 0, it is reset to
default position afterwards).
parent 6501faf9
......@@ -243,7 +243,7 @@ gimp_mirror_set_property (GObject *object,
if (g_value_get_double (value) > 0.0 &&
if (g_value_get_double (value) >= 0.0 &&
g_value_get_double (value) < (gdouble) gimp_image_get_width (image))
mirror->mirror_position_x = g_value_get_double (value);
......@@ -264,7 +264,7 @@ gimp_mirror_set_property (GObject *object,
if (g_value_get_double (value) > 0.0 &&
if (g_value_get_double (value) >= 0.0 &&
g_value_get_double (value) < (gdouble) gimp_image_get_height (image))
mirror->mirror_position_y = g_value_get_double (value);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment