Commit 699b835c authored by programmer_ceds's avatar programmer_ceds Committed by Michael Natterer

Bug 787321 - Editing shear tool values numerically can have no effect

If the user enters a value in the shear tool dialog, that value must
be honored. Always set the shear direction to the edited axis and
reset the other axis to 0.
parent c43be61c
......@@ -287,10 +287,10 @@ shear_x_mag_changed (GtkAdjustment *adj,
if (value != tr_tool->trans_info[SHEAR_X])
{
if (tr_tool->trans_info[ORIENTATION] == GIMP_ORIENTATION_UNKNOWN)
tr_tool->trans_info[ORIENTATION] = GIMP_ORIENTATION_HORIZONTAL;
tr_tool->trans_info[ORIENTATION] = GIMP_ORIENTATION_HORIZONTAL;
tr_tool->trans_info[SHEAR_X] = value;
tr_tool->trans_info[SHEAR_Y] = 0.0; /* can only shear in one axis */
gimp_transform_tool_push_internal_undo (tr_tool);
......@@ -306,10 +306,10 @@ shear_y_mag_changed (GtkAdjustment *adj,
if (value != tr_tool->trans_info[SHEAR_Y])
{
if (tr_tool->trans_info[ORIENTATION] == GIMP_ORIENTATION_UNKNOWN)
tr_tool->trans_info[ORIENTATION] = GIMP_ORIENTATION_VERTICAL;
tr_tool->trans_info[ORIENTATION] = GIMP_ORIENTATION_VERTICAL;
tr_tool->trans_info[SHEAR_Y] = value;
tr_tool->trans_info[SHEAR_X] = 0.0; /* can only shear in one axis */
gimp_transform_tool_push_internal_undo (tr_tool);
......
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