]> granicus.if.org Git - imagemagick/commitdiff
Fixed compiler warning.
authordirk <dirk@git.imagemagick.org>
Mon, 9 Jun 2014 08:11:19 +0000 (08:11 +0000)
committerdirk <dirk@git.imagemagick.org>
Mon, 9 Jun 2014 08:11:19 +0000 (08:11 +0000)
coders/tiff.c

index 41a79326900f508d8adbda94f447321152bd86d6..12d7e3b6391109ef1fcf88d109ca2e7e1d123e16 100644 (file)
@@ -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;