diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-06-09 10:49:17 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-06-09 10:49:17 +0200 |
commit | 7868ff68cff97b21fe6d8681f8bc0334849c4d38 (patch) | |
tree | 0df9dca31bec8cf01fe0395818d148befec136ab /src/PixbufCache.vala | |
parent | 5b7b3b1dfd5ce7c275881098310667b09562ad27 (diff) |
New upstream version 0.32.13upstream/0.32.13upstream
Diffstat (limited to 'src/PixbufCache.vala')
-rw-r--r-- | src/PixbufCache.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/PixbufCache.vala b/src/PixbufCache.vala index 6ff740e..76fdbd3 100644 --- a/src/PixbufCache.vala +++ b/src/PixbufCache.vala @@ -120,7 +120,11 @@ public class PixbufCache : Object { } // This call never blocks. Returns null if the pixbuf is not present. - public Gdk.Pixbuf? get_ready_pixbuf(Photo photo) { + public Gdk.Pixbuf? get_ready_pixbuf(Photo? photo) { + if (photo == null) { + return null; + } + return get_cached(photo); } |