Add nullptr check to on_cell_data_render(), just in case.

This commit is contained in:
Alexander Shaduri
2022-01-29 11:56:54 +04:00
parent b27b04ebf0
commit ebb864f234
+3
View File
@@ -203,6 +203,9 @@ class GscMainWindowIconView : public Gtk::IconView {
{
Gtk::TreeRow row = *iter;
Glib::RefPtr<Gdk::Pixbuf> 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