summaryrefslogtreecommitdiff
path: root/src/PhotoPage.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2025-08-20 13:46:37 +0200
committerJörg Frings-Fürst <debian@jff.email>2025-08-20 13:46:37 +0200
commitf612c8e2a0aed0314cc4bfd9d082ceda43813929 (patch)
tree89feef860546b5400afca7e887956af768801525 /src/PhotoPage.vala
parent34852b296a372a81d0b97ab4c12f32be6d294cd3 (diff)
parenta71628d0b6bfa751f014b15fca5f1c1ff4989721 (diff)
Merge branch 'release/debian/0.32.13-1'debian/0.32.13-1
Diffstat (limited to 'src/PhotoPage.vala')
-rw-r--r--src/PhotoPage.vala8
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());