]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/image.c (image_set_transform): Don't use ! for Lisp object.
authorPhilipp Stephani <phst@google.com>
Thu, 11 Mar 2021 10:05:32 +0000 (11:05 +0100)
committerPhilipp Stephani <phst@google.com>
Thu, 11 Mar 2021 10:05:32 +0000 (11:05 +0100)
src/image.c

index 025ee72703c0702eaf3281d81bf20d79e918dbff..6d493f6cdd4c1222212113d136150111405edb51 100644 (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);