]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 16 Sep 2011 01:37:41 +0000 (01:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 16 Sep 2011 01:37:41 +0000 (01:37 +0000)
MagickCore/transform.c

index 02a5c33e9a02c8e23309ea9c10a18683c4e3f6ac..cd6ef352f3efa8ddc03d1b84be95e71bb2ceba3a 100644 (file)
@@ -795,8 +795,8 @@ MagickExport Image *CropImageToTiles(const Image *image,
           width+=(geometry.x < 0 ? -1 : 1)*geometry.x;
           height+=(geometry.y < 0 ? -1 : 1)*geometry.y;
         }
-      delta.x=(double) (width+geometry.width >> 1)/geometry.width;
-      delta.y=(double) (height+geometry.height >> 1)/geometry.height;
+      delta.x=(double) (width+(geometry.width >> 1))/geometry.width;
+      delta.y=(double) (height+(geometry.height >> 1))/geometry.height;
       for (offset.y=0; offset.y < (double) height; )
       {
         if ((flags & AspectValue) == 0)