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

gEDA-cvs: CVS update: o_attrib.c



  User: pcjc2   
  Date: 07/04/01 23:31:03

  Modified:    .        Tag: noscreen o_attrib.c o_buffer.c
  Log:
  Fix for paste-buffer operation, and for placing top-level attributes.
  
  Calls to world_get_complex_bounds() were incorrect,
  
  and needed replacing with world_get_object_list_bounds().
  
  
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.25.6.2  +3 -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.25.6.1
  retrieving revision 1.25.6.2
  diff -u -b -r1.25.6.1 -r1.25.6.2
  --- o_attrib.c	27 Dec 2006 17:37:56 -0000	1.25.6.1
  +++ o_attrib.c	2 Apr 2007 03:31:03 -0000	1.25.6.2
  @@ -437,7 +437,7 @@
           break;
       }
     } else {
  -    world_get_complex_bounds(w_current, 
  +    world_get_object_list_bounds(w_current,
                                w_current->page_current->object_head,
                                &left, &top, &right, &bottom);
   	
  
  
  
  1.8.6.3   +7 -3      eda/geda/gaf/gschem/src/o_buffer.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_buffer.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_buffer.c,v
  retrieving revision 1.8.6.2
  retrieving revision 1.8.6.3
  diff -u -b -r1.8.6.2 -r1.8.6.3
  --- o_buffer.c	12 Feb 2007 01:53:32 -0000	1.8.6.2
  +++ o_buffer.c	2 Apr 2007 03:31:03 -0000	1.8.6.3
  @@ -121,9 +121,13 @@
       return;
     }
   
  -  world_get_complex_bounds(w_current, object_buffer[buf_num], 
  +  if (!world_get_object_list_bounds(w_current, object_buffer[buf_num],
                              &rleft, &rtop, 
  -                           &rright, &rbottom);
  +                                    &rright, &rbottom)) {
  +    /* If the paste buffer doesn't have any objects
  +     * to define its any bounds, we drop out here */
  +    return;
  +  }
   
     /* snap x and y to the grid, pointed out by Martin Benes */
     x = snap_grid(w_current, rleft);
  
  
  


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