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

gEDA-cvs: CVS update: f_print.nw



  User: mike    
  Date: 06/05/19 08:02:51

  Modified:    .        f_print.nw
  Log:
  Fixed offset printing bug.  Schematic origin was not translated to 0,0 in
  
  output space before objects were sent.
  
  
  
  
  Revision  Changes    Path
  1.18      +12 -3     eda/geda/devel/libgeda/noweb/f_print.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: f_print.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/f_print.nw,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -b -r1.17 -r1.18
  --- f_print.nw	18 May 2006 02:13:06 -0000	1.17
  +++ f_print.nw	19 May 2006 12:02:51 -0000	1.18
  @@ -446,6 +446,10 @@
     case WINDOW:
       dx = w_current->page_current->right - w_current->page_current->left;
       dy = w_current->page_current->bottom - w_current->page_current->top;
  +    origin_x = w_current->page_current->left;
  +    origin_y = w_current->page_current->top;
  +    right = w_current->page_current->right;
  +    bottom = w_current->page_current->bottom;
       break;
   
     case EXTENTS_NOMARGINS:
  @@ -475,7 +479,12 @@
       }
     }
   
  +#if 0
  +  /* Debug */
  +  printf("dx: %d dy:%d, origin_x:%d origin_y:%d, right:%d bottom:%d\n",
  +	 dx,dy,origin_x,origin_y,right,bottom);
     printf("scale:%f\n",scale);
  +#endif  
     
     /* Output the header */
     f_print_header(w_current, fp, 
  @@ -558,7 +567,7 @@
     /* Print the objects */
     f_print_objects(w_current, fp, 
   		  w_current->page_current->object_head,
  -		  -1, -1, scale, unicode_count, unicode_table);
  +		  origin_x, origin_y, scale, unicode_count, unicode_table);
   
     f_print_footer(fp);