Commit a4582dac authored by Nicolas Robidoux's avatar Nicolas Robidoux

trasform-core.c: wrong inner product (the y axis goes down in images)

parent 50c7f37a
......@@ -754,7 +754,8 @@ transform_affine (GeglBuffer *dest,
inverse.coeff[1][1] * (roi->y + (gdouble) 0.5) +
inverse.coeff[1][2];
if (inverse_jacobian.coeff[0][0] < inverse_jacobian.coeff[1][0])
if (inverse_jacobian.coeff[0][0] + inverse_jacobian.coeff[1][0] <
(gdouble) 0.0)
{
/*
* "Flip", that is, put the "horizontal start" at the end
......@@ -774,7 +775,8 @@ transform_affine (GeglBuffer *dest,
flip_x = (gint) 1;
}
if (inverse_jacobian.coeff[0][1] < inverse_jacobian.coeff[1][1])
if (inverse_jacobian.coeff[0][1] + inverse_jacobian.coeff[1][1] <
(gdouble) 0.0)
{
/*
* "Flip", that is, put the "vertical start" at the last
......
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