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

gEDA-cvs: CVS update: x_image.nw



  User: danmc   
  Date: 06/02/06 11:34:57

  Modified:    .        x_image.nw
  Log:
  All variable declarations go at the beginning of the function!  Not
  
  all compilers can deal otherwise.
  
  
  
  
  Revision  Changes    Path
  1.21      +2 -1      eda/geda/devel/gschem/noweb/x_image.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_image.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_image.nw,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -b -r1.20 -r1.21
  --- x_image.nw	11 Jan 2006 14:48:06 -0000	1.20
  +++ x_image.nw	6 Feb 2006 16:34:57 -0000	1.21
  @@ -323,6 +323,7 @@
     GdkPixbuf *pixbuf;
     char *filetype;
   #endif
  +  float prop;
   
     width = w_current->image_width;
     height = w_current->image_height;
  @@ -345,7 +346,7 @@
     page_center_top = save_page_top + (page_height / 2);
   
     /* Preserve proportions */
  -  float prop = (float)width / height;
  +  prop = (float)width / height;
     if(page_width > page_height) {
       page_height = (page_width / prop);
     }else{