diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-08-02 19:08:13 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-08-02 19:08:13 +0000 |
commit | f6ba8909d6be7eb6bc404f5b9f0c489f35bdeb10 (patch) | |
tree | be82345da96dfd8a45d47df9e0682a7f557f28d3 /gtk/gtkcellview.c | |
parent | e6429d95481c92209ce0e114a23205b7c79446a9 (diff) | |
download | gtk+-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.c | 3 |
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); |