summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-08-02 19:08:13 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-08-02 19:08:13 +0000
commitf6ba8909d6be7eb6bc404f5b9f0c489f35bdeb10 (patch)
treebe82345da96dfd8a45d47df9e0682a7f557f28d3 /gtk/gtkcellview.c
parente6429d95481c92209ce0e114a23205b7c79446a9 (diff)
downloadgtk+-f6ba8909d6be7eb6bc404f5b9f0c489f35bdeb10.tar.gz
Don't crash if the displayed row is gone.
2004-08-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't crash if the displayed row is gone.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r--gtk/gtkcellview.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index cfa82d5de2..880a412110 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -543,6 +543,9 @@ gtk_cell_view_set_cell_data (GtkCellView *cellview)
g_return_if_fail (cellview->priv->displayed_row != NULL);
path = gtk_tree_row_reference_get_path (cellview->priv->displayed_row);
+ if (!path)
+ return;
+
gtk_tree_model_get_iter (cellview->priv->model, &iter, path);
gtk_tree_path_free (path);