Commit 8ec61592 authored by Bill Skaggs's avatar Bill Skaggs Committed by William Skaggs
Browse files

fixed my fix for bug # 68106, which worked incorrectly for two of the

2004-06-19 Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/tools/gimpscaletool.c: fixed my fix for bug # 68106, which
	worked incorrectly for two of the control points.
parent c4558d8e
2004-06-19 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpscaletool.c: fixed my fix for bug # 68106, which
worked incorrectly for two of the control points.
2004-06-19 Michael Natterer <mitch@gimp.org>
* modules/controller_midi.c (midi_read_event): simplified
......
......@@ -343,12 +343,13 @@ gimp_scale_tool_motion (GimpTransformTool *tr_tool,
mag = hypot ((gdouble)(tr_tool->x2 - tr_tool->x1),
(gdouble)(tr_tool->y2 - tr_tool->y1));
dot = diff_x * (tr_tool->x2 - tr_tool->x1) + diff_y * (tr_tool->y2 - tr_tool->y1);
dot = dir_x * diff_x * (tr_tool->x2 - tr_tool->x1)
+ dir_y * diff_y * (tr_tool->y2 - tr_tool->y1);
if (mag > 0.)
{
diff_x = (tr_tool->x2 - tr_tool->x1) * dot / (mag*mag);
diff_y = (tr_tool->y2 - tr_tool->y1) * dot / (mag*mag);
diff_x = dir_x * (tr_tool->x2 - tr_tool->x1) * dot / (mag*mag);
diff_y = dir_y * (tr_tool->y2 - tr_tool->y1) * dot / (mag*mag);
}
else
diff_x = diff_y = 0;
......
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