]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix recently-introduced image_set_crop typo
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 7 Jun 2019 07:33:47 +0000 (00:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 7 Jun 2019 07:44:45 +0000 (00:44 -0700)
* src/image.c (image_set_crop) [!HAVE_NATIVE_TRANSFORMS]:
Don’t call compute_image_size, as it does not exist and its
result is not needed.

src/image.c

index 2a980135a2292ceffaca88317b61dae667c43ff9..1ac665ba45f103258077a246954f3c1682ef8867 100644 (file)
@@ -2057,9 +2057,9 @@ image_set_rotation (struct image *img, matrix3x3 tm)
 static void
 image_set_crop (struct image *img, matrix3x3 tm)
 {
+#ifdef HAVE_NATIVE_TRANSFORMS
   int width, height;
   compute_image_size (img->width, img->height, img->spec, &width, &height);
-#ifdef HAVE_NATIVE_TRANSFORMS
 # ifdef HAVE_IMAGEMAGICK
   /* ImageMagick images are already cropped.  */
   if (EQ (image_spec_value (img->spec, QCtype, NULL), Qimagemagick))