* plugins/gtk+/glade-column-types.c: Fixed crash when user performs Drag'n'Drop of

< enter column here > and no columns are yet added (fixes bug 633943).
This commit is contained in:
Tristan Van Berkom 2011-01-09 17:25:26 +09:00
parent a48a9f6110
commit 52330855cb
2 changed files with 9 additions and 1 deletions

View File

@ -43,6 +43,9 @@
* src/glade-window.c: Fixed use of uninitialized variables in warning messages,
bug 634325, fix by Alex Merry.
* plugins/gtk+/glade-column-types.c: Fixed crash when user performs Drag'n'Drop of
< enter column here > and no columns are yet added (fixes bug 633943).
2011-01-08 Tristan Van Berkom <tristanvb@openismus.com>
* gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-builtins.c,

View File

@ -435,7 +435,12 @@ columns_changed_idle (GladeEditorProperty * eprop)
property = glade_editor_property_get_property (eprop);
glade_property_get (property, &columns);
g_assert (columns);
/* This can happen when the user performs DnD and there
* are no columns yet */
if (!columns)
return FALSE;
columns = glade_column_list_copy (columns);
if (gtk_tree_model_get_iter_first