From: dirk Date: Mon, 9 Jun 2014 08:11:19 +0000 (+0000) Subject: Fixed compiler warning. X-Git-Tag: 7.0.1-0~2237 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e230cbcb2d74733d385cbd7754fa947299deae3;p=imagemagick Fixed compiler warning. --- diff --git a/coders/tiff.c b/coders/tiff.c index 41a793269..12d7e3b63 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1137,8 +1137,8 @@ RestoreMSCWarning if ((TIFFGetFieldDefaulted(tiff,TIFFTAG_XPOSITION,&x_position) == 1) && (TIFFGetFieldDefaulted(tiff,TIFFTAG_YPOSITION,&y_position) == 1)) { - image->page.x=(ssize_t) ceil(x_position*x_resolution-0.5); - image->page.y=(ssize_t) ceil(y_position*y_resolution-0.5); + image->page.x=(ssize_t) ceil(x_position*image->resolution.x-0.5); + image->page.y=(ssize_t) ceil(y_position*image->resolution.y-0.5); } if (TIFFGetFieldDefaulted(tiff,TIFFTAG_ORIENTATION,&orientation) == 1) image->orientation=(OrientationType) orientation;