* src/image.c (image_set_transform): Don't use ! for Lisp object.

This commit is contained in:
Philipp Stephani 2021-03-11 11:05:32 +01:00
parent 9ab51428cd
commit 222d70333f

View file

@ -2234,7 +2234,7 @@ image_set_transform (struct frame *f, struct image *img)
TODO: implement for Windows. */
bool smoothing;
Lisp_Object s = image_spec_value (img->spec, QCtransform_smoothing, NULL);
if (!s)
if (NILP (s))
smoothing = (width < img->width) || (height < img->height);
else
smoothing = !NILP (s);