From 8e230cbcb2d74733d385cbd7754fa947299deae3 Mon Sep 17 00:00:00 2001 From: dirk Date: Mon, 9 Jun 2014 08:11:19 +0000 Subject: [PATCH] Fixed compiler warning. --- coders/tiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0