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

gEDA-cvs: CVS update: o_complex.c



  User: pcjc2   
  Date: 07/05/15 14:56:30

  Modified:    .        o_complex.c
  Log:
  Fixed offset in o_complex_translate_all to be relative to bottom left of world bounds.
  
  
  
  This bug appears to have crept in when switching to world coords,
  
  as the numerical sense of "top" and "bottom" are switched around.
  
  These variables eventually need renaming {x|y}_{min|max} to avoid 
  
  further confusion.
  
  
  
  
  Revision  Changes    Path
  1.34      +5 -1      eda/geda/gaf/gschem/src/o_complex.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_complex.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_complex.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -b -r1.33 -r1.34
  --- o_complex.c	17 Apr 2007 20:19:17 -0000	1.33
  +++ o_complex.c	15 May 2007 18:56:30 -0000	1.34
  @@ -648,7 +648,11 @@
   
     /*! \todo do we want snap grid here? */
     x = snap_grid( w_current, w_rleft );
  -  y = snap_grid( w_current, w_rbottom );
  +  /* WARNING: w_rtop isn't the top of the bounds, it is the smaller
  +   * y_coordinate, which represents in the bottom in world coords.
  +   * These variables are as named from when screen-coords (which had 
  +   * the correct sense) were in use . */
  +  y = snap_grid( w_current, w_rtop );
   
     o_current = w_current->page_current->object_head;
     while(o_current != NULL) {
  
  
  


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