From 1de1435752f37f8ff6388a2658e1e81149966b6e Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 2 Feb 2011 12:51:40 +0000 Subject: [PATCH] oops im_zone() typo missed a var being renamed argh --- libvips/other/im_zone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvips/other/im_zone.c b/libvips/other/im_zone.c index 9956b306..c3f3de68 100644 --- a/libvips/other/im_zone.c +++ b/libvips/other/im_zone.c @@ -122,7 +122,7 @@ im_fzone( IMAGE *out, int size ) * Returns: 0 on success, -1 on error */ int -im_zone( IMAGE *im, int size ) +im_zone( IMAGE *out, int size ) { IMAGE *t[2]; @@ -131,7 +131,7 @@ im_zone( IMAGE *im, int size ) if( im_open_local_array( out, t, 2, "im_grey", "p" ) || im_fzone( t[0], size ) || im_lintra( 127.5, t[0], 127.5, t[1] ) || - im_clip2fmt( t[1], im, IM_BANDFMT_UCHAR ) ) + im_clip2fmt( t[1], out, IM_BANDFMT_UCHAR ) ) return( -1 ); return( 0 );