From: cristy Date: Wed, 24 Jul 2013 17:23:30 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3485 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08fb0eafae2949a6252adeef9a941adbc60212c9;p=imagemagick --- diff --git a/coders/tiff.c b/coders/tiff.c index 6977121e0..db40988d2 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -3195,7 +3195,8 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, (void) TIFFSetField(tiff,TIFFTAG_RESOLUTIONUNIT,(uint16) units); (void) TIFFSetField(tiff,TIFFTAG_XRESOLUTION,image->resolution.x); (void) TIFFSetField(tiff,TIFFTAG_YRESOLUTION,image->resolution.y); - if ((image->page.x > 0) && (image->page.y > 0)) + if (((image->page.x > 0) && (image->page.y >= 0)) || + ((image->page.y > 0) && (image->page.x >= 0))) { /* Set image position.