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

gEDA-cvs: CVS update: x_image.c



  User: ahvezda 
  Date: 07/05/26 10:56:27

  Modified:    .        x_image.c
  Log:
  Applied fix for "Write image" seg fault found (and fixed) by Robert Fitzsimons.
  
  
  
  
  Revision  Changes    Path
  1.38                 eda/geda/gaf/gschem/src/x_image.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_image.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_image.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -b -r1.37 -r1.38
  --- x_image.c	27 Apr 2007 17:47:56 -0000	1.37
  +++ x_image.c	26 May 2007 14:56:27 -0000	1.38
  @@ -150,9 +150,10 @@
         if (strcasecmp(buf, X_IMAGE_DEFAULT_TYPE) == 0) {
   	default_index = i;
         }
  +      i++;  /* this is the count of items added to the combo box */
  +	    /* not the total number of pixbuf formats */
         g_free(buf);
       }
  -    i++;
       ptr = ptr->next;
     }
     g_slist_free (formats);
  
  
  


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