aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPaul Eggert2019-06-07 00:33:47 -0700
committerPaul Eggert2019-06-07 00:44:45 -0700
commitcfb592fd4bf10b4892b58adc35dae1430dcb3ba7 (patch)
treecfe9e3945fb227c0dc38cf4e45174572fd9ef597 /src/image.c
parent486a81f387bb59b2fbbc6aff7b41adbe1621394e (diff)
downloademacs-cfb592fd4bf10b4892b58adc35dae1430dcb3ba7.tar.gz
emacs-cfb592fd4bf10b4892b58adc35dae1430dcb3ba7.zip
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.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 2a980135a22..1ac665ba45f 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2057,9 +2057,9 @@ image_set_rotation (struct image *img, matrix3x3 tm)
2057static void 2057static void
2058image_set_crop (struct image *img, matrix3x3 tm) 2058image_set_crop (struct image *img, matrix3x3 tm)
2059{ 2059{
2060#ifdef HAVE_NATIVE_TRANSFORMS
2060 int width, height; 2061 int width, height;
2061 compute_image_size (img->width, img->height, img->spec, &width, &height); 2062 compute_image_size (img->width, img->height, img->spec, &width, &height);
2062#ifdef HAVE_NATIVE_TRANSFORMS
2063# ifdef HAVE_IMAGEMAGICK 2063# ifdef HAVE_IMAGEMAGICK
2064 /* ImageMagick images are already cropped. */ 2064 /* ImageMagick images are already cropped. */
2065 if (EQ (image_spec_value (img->spec, QCtype, NULL), Qimagemagick)) 2065 if (EQ (image_spec_value (img->spec, QCtype, NULL), Qimagemagick))