Commit ecd7d40a authored by Eli Zaretskii's avatar Eli Zaretskii

Fix rotation validity test in image.c

* src/image.c (compute_image_rotation): Fix the validity test
for :rotation values.  This avoids logging error messages when
no :rotation was provided in the image spec.
parent b5de191e
Pipeline #2236 failed with stage
in 56 minutes and 10 seconds
......@@ -2065,7 +2065,10 @@ matrix3x3_mult (matrix3x3 a, matrix3x3 b, matrix3x3 result)
static void
compute_image_rotation (struct image *img, double *rotation)
Lisp_Object value = image_spec_value (img->spec, QCrotation, NULL);
bool foundp = false;
Lisp_Object value = image_spec_value (img->spec, QCrotation, &foundp);
if (!foundp)
if (! NUMBERP (value))
image_error ("Invalid image `:rotation' parameter");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment