emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 222d703 2/2: * src/image.c (image_set_transform): Don't use ! for


From: Philipp Stephani
Subject: master 222d703 2/2: * src/image.c (image_set_transform): Don't use ! for Lisp object.
Date: Thu, 11 Mar 2021 05:05:55 -0500 (EST)

branch: master
commit 222d70333f2cfeefa6c3430fc54714bd122cc779
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    * src/image.c (image_set_transform): Don't use ! for Lisp object.
---
 src/image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/image.c b/src/image.c
index 025ee72..6d493f6 100644
--- a/src/image.c
+++ b/src/image.c
@@ -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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]