Avoid GtkCritical on startup
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 29 Aug 2021 17:45:38 +0000 (19:45 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 29 Aug 2021 17:45:38 +0000 (19:45 +0200)
src/ui/gui/psppire-output-view.c

index 5cc20b2609582387f8d77f03095126f00c7ec478..6c19434b1bb9c45548b571634b55ea49860d2631 100644 (file)
@@ -452,7 +452,7 @@ psppire_output_view_put__ (struct psppire_output_view *view,
                               sizeof *view->items);
   struct output_view_item *view_item = &view->items[view->n_items];
   if (!init_output_view_item (view_item, view, item,
-                              gtk_tree_path_get_depth (parent_path)))
+                              parent_path ? gtk_tree_path_get_depth (parent_path) : 0))
     return;
   view->n_items++;