]> git.eshelyaron.com Git - emacs.git/commitdiff
Make image cache lookups work again after previous patch
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 20 Aug 2020 23:29:26 +0000 (01:29 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 20 Aug 2020 23:29:32 +0000 (01:29 +0200)
* src/image.c (search_image_cache): Fix reversed logic in previous
patch.

src/image.c

index 643b3d0a1f41a0f2742016bc32b32223105d6a02..123de54ba27af1058933c60f271ddf1e226154e2 100644 (file)
@@ -1633,7 +1633,7 @@ search_image_cache (struct frame *f, Lisp_Object spec, EMACS_UINT hash)
 
   for (img = c->buckets[i]; img; img = img->next)
     if (img->hash == hash
-       && !equal_lists (img->spec, spec)
+       && equal_lists (img->spec, spec)
        && img->frame_foreground == FRAME_FOREGROUND_PIXEL (f)
        && img->frame_background == FRAME_BACKGROUND_PIXEL (f))
       break;