diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-06-09 10:49:33 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-06-09 10:49:33 +0200 |
commit | 361eb97e74a85fd3cbbb67a7a17281c49e2585f4 (patch) | |
tree | cb3f8e53587ee51cd0201765e6140dcc423ba4b0 /src/PhotoPage.vala | |
parent | e10377c3781fe84f10b3758b35bf403f91e6603a (diff) | |
parent | 7868ff68cff97b21fe6d8681f8bc0334849c4d38 (diff) |
Update upstream source from tag 'upstream/0.32.13'
Update to upstream version '0.32.13'
with Debian dir 0f2ff2784806da3772509f9284696f1cb7974946
Diffstat (limited to 'src/PhotoPage.vala')
-rw-r--r-- | src/PhotoPage.vala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala index a28ab44..3ab0f6b 100644 --- a/src/PhotoPage.vala +++ b/src/PhotoPage.vala @@ -835,7 +835,9 @@ public abstract class EditingHostPage : SinglePhotoPage { photo_changing(photo); DataView view = get_view().get_view_for_source(photo); - assert(view != null); + if (view == null) { + return; + } // Select photo. get_view().unselect_all(); @@ -1255,6 +1257,10 @@ public abstract class EditingHostPage : SinglePhotoPage { } private void quick_update_pixbuf() { + if (get_photo() == null) { + return; + } + Gdk.Pixbuf? pixbuf = cache.get_ready_pixbuf(get_photo()); if (pixbuf != null) { set_pixbuf(pixbuf, get_photo().get_dimensions()); |