summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorMark A. Hershberger <mah@nichework.com>2019-06-06 09:07:36 -0400
committerMark A. Hershberger <mah@nichework.com>2019-06-06 09:07:36 -0400
commitc8123b45f7b9b660db2040ee85c3a2fd260d3f16 (patch)
treeb40125a458cd85dca3063f273c7e3a52228b601d /src/image.c
parentcd3221ab0f8dbde584a76c2648cc9029e63bd8d1 (diff)
downloademacs-c8123b45f7b9b660db2040ee85c3a2fd260d3f16.tar.gz
emacs-c8123b45f7b9b660db2040ee85c3a2fd260d3f16.tar.bz2
emacs-c8123b45f7b9b660db2040ee85c3a2fd260d3f16.zip
Restore height and with from that were accidentally removed
See 610fb73ab6d7a22b722f523d6ebc4aa8fa1db7c9 USE_CARIO needs these.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index a95a7bf27f9..29cb2fc10b9 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2035,6 +2035,8 @@ image_set_rotation (struct image *img, double tm[3][3])
static void
image_set_crop (struct image *img, double tm[3][3])
{
+ 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. */
@@ -2051,7 +2053,7 @@ image_set_crop (struct image *img, double tm[3][3])
# endif
double m[3][3], tmp[3][3];
- int left, top, width, height;
+ int left, top;
Lisp_Object x = Qnil;
Lisp_Object y = Qnil;
Lisp_Object w = Qnil;