emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master cfb592f 3/3: Fix recently-introduced image_set_crop


From: Paul Eggert
Subject: [Emacs-diffs] master cfb592f 3/3: Fix recently-introduced image_set_crop typo
Date: Fri, 7 Jun 2019 03:44:53 -0400 (EDT)

branch: master
commit cfb592fd4bf10b4892b58adc35dae1430dcb3ba7
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Fix recently-introduced image_set_crop typo
    
    * 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/image.c b/src/image.c
index 2a98013..1ac665b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]