Commit 83422580 authored by Massimo Valentini's avatar Massimo Valentini

Bug 662219 Rotate does not rotate; the image is ...

gone except for a small rectangle

atan2 returns an angle between -pi, pi. Here it is needed
between 0, 2pi. Simpler to invert both axes.
parent 5e015aeb
......@@ -292,7 +292,7 @@ gimp_transform_resize_crop (gdouble dx1,
points[0] = points[min];
points[min] = t;
for (i = 1; i < 4; i++)
for (i = 1; i < 3; i++)
{
gdouble min_theta;
gdouble min_mag;
......@@ -318,7 +318,7 @@ gimp_transform_resize_crop (gdouble dx1,
break;
}
theta = atan2 (sy, sx);
theta = atan2 (-sy, -sx);
mag = (sx * sx) + (sy * sy);
if ((theta < min_theta) ||
......
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