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

gEDA-cvs: CVS update: o_attrib.c



  User: ahvezda 
  Date: 06/08/06 12:07:54

  Modified:    .        o_attrib.c
  Log:
  Applied Patch#1531802: Bugfix for segfault when adding a global attribute
  
  by Tomaz Solc. Thanks!
  
  
  
  
  Revision  Changes    Path
  1.25      +4 -3      eda/geda/gaf/gschem/src/o_attrib.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_attrib.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_attrib.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -b -r1.24 -r1.25
  --- o_attrib.c	14 Jul 2006 02:23:54 -0000	1.24
  +++ o_attrib.c	6 Aug 2006 16:07:54 -0000	1.25
  @@ -426,6 +426,7 @@
           world_y = o_current->text->y;
   			
           color = w_current->detachedattr_color;
  +
           o_current = NULL;	
   			
   #if 0 /* don't error out, instead treat text like another OBJECT, but */
  @@ -483,7 +484,7 @@
   
     /* Run the add attribute hook */
     if (scm_hook_empty_p(add_attribute_hook) == SCM_BOOL_F &&
  -      object != NULL) {
  +      o_current != NULL) {
   	scm_run_hook(add_attribute_hook,
   		     scm_cons(g_make_object_smob(w_current, 
   						 o_current),
  
  
  


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