[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: x_autonumber.c



  User: werner  
  Date: 06/12/21 13:00:29

  Modified:    .        x_autonumber.c
  Log:
  	* src/x_autonumber.c: fixed o_selection_remove call which caused 
  
  	  gschem to crash. suggestion by Ales, patch from Peter Brett.
  
  
  
  
  Revision  Changes    Path
  1.5       +3 -3      eda/geda/gaf/gschem/src/x_autonumber.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_autonumber.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_autonumber.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- x_autonumber.c	18 Dec 2006 11:15:17 -0000	1.4
  +++ x_autonumber.c	21 Dec 2006 18:00:28 -0000	1.5
  @@ -582,8 +582,8 @@
         if (slot_str != NULL && o_slot != NULL) {
   	g_free(slot_str);
   	/* delete the slot attribute */
  -	GList *selection = autotext->toplevel->page_current->selection_list;
  -	o_selection_remove (&selection, o_slot);
  +	o_selection_remove (&(autotext->toplevel->page_current->selection_list), 
  +			    o_slot);
   	o_delete_text (autotext->toplevel, o_slot);
   	/* redraw the slotted object. So that the pinnumbers appear as with slot=1 */
   	/* --> No: should be done by o_delete_text as several dialog use it. */
  @@ -689,7 +689,7 @@
        in the searchtext list */
     
     if (strlen(scope_text) == 0) {
  -    s_log_message(_("No searchstring given in autonumber text."));
  +    s_log_message(_("No searchstring given in autonumber text.\n"));
       return; /* error */
     }
     else if (g_str_has_suffix(scope_text,"?") == TRUE) {
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs