diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-08-20 13:46:37 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-08-20 13:46:37 +0200 |
commit | f612c8e2a0aed0314cc4bfd9d082ceda43813929 (patch) | |
tree | 89feef860546b5400afca7e887956af768801525 /src/PixbufCache.vala | |
parent | 34852b296a372a81d0b97ab4c12f32be6d294cd3 (diff) | |
parent | a71628d0b6bfa751f014b15fca5f1c1ff4989721 (diff) |
Merge branch 'release/debian/0.32.13-1'debian/0.32.13-1
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); } |