Skip to content
  • Michael Natterer's avatar
    added checks to ensure that the iter is not reordered to its own position. · b45f8ef2
    Michael Natterer authored
    2003-04-14  Michael Natterer  <mitch@gimp.org>
    
    	* gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
    	that the iter is not reordered to its own position. Prevents model
    	corruption for the case that the store contains only a single item
    	(fixes bug #108387).
    
    	Unrelated:
    
    	* gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
    	new list element later so we don't leak it if we decide to return
    	early.
    
    	* gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
    	set selection->tree_view->priv->anchor to NULL after freeing it.
    b45f8ef2
To find the state of this project's repository at the time of any of these versions, check out the tags.