* 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.
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)
+ return;
if (! NUMBERP (value))
{
image_error ("Invalid image `:rotation' parameter");