fix coordinate error in affine

see https://github.com/jcupitt/libvips/issues/131
This commit is contained in:
John Cupitt 2014-06-17 14:22:55 +01:00
parent 1772588eb6
commit d01beb5411
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
Alessandro
- fix a crash in vips_rawsave(), thanks Andrea
- updated German translation, thanks Chris
- fix coordinate error in affine, thanks ferryfax
24/2/14 started 7.38.5
- jpeg load from buffer could write to input, thanks Lovell

View File

@ -416,8 +416,8 @@ vips_affine_build( VipsObject *object )
window_offset =
vips_interpolate_get_window_offset( affine->interpolate );
affine->trn.iarea.left = window_offset;
affine->trn.iarea.top = window_offset;
affine->trn.iarea.left = 0;
affine->trn.iarea.top = 0;
affine->trn.iarea.width = in->Xsize;
affine->trn.iarea.height = in->Ysize;
affine->trn.a = ((double *) affine->matrix->data)[0];