From ebb864f234c7aa4382d4cb7a778d4d2441feb435 Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Sat, 29 Jan 2022 11:56:54 +0400 Subject: [PATCH] Add nullptr check to on_cell_data_render(), just in case. --- src/gsc_main_window_iconview.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gsc_main_window_iconview.h b/src/gsc_main_window_iconview.h index e895e43..4e832f5 100644 --- a/src/gsc_main_window_iconview.h +++ b/src/gsc_main_window_iconview.h @@ -203,6 +203,9 @@ class GscMainWindowIconView : public Gtk::IconView { { Gtk::TreeRow row = *iter; Glib::RefPtr pixbuf = row[col_pixbuf]; + if (!pixbuf) { + return; + } // Gtkmm property_surface() doesn't work, so use plain C. // https://bugzilla.gnome.org/show_bug.cgi?id=788513