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

gEDA-cvs: CVS update: a_zoom.c



  User: pcjc2   
  Date: 07/02/25 09:36:45

  Modified:    .        Tag: noscreen a_zoom.c
  Log:
  Changed a_zoom_extents() to call to world_get_object_list_bounds().
  
      
  
  Added logic to stop the zoom-extents operation if the object list
  
  evaluated has no bounds (e.g. object list just has hidden attributes).
  
  
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.23.6.1  +5 -3      eda/geda/gaf/gschem/src/a_zoom.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: a_zoom.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/a_zoom.c,v
  retrieving revision 1.23
  retrieving revision 1.23.6.1
  diff -u -b -r1.23 -r1.23.6.1
  --- a_zoom.c	21 Oct 2006 13:56:23 -0000	1.23
  +++ a_zoom.c	25 Feb 2007 14:36:44 -0000	1.23.6.1
  @@ -171,9 +171,11 @@
       return;
     }
   
  -  world_get_complex_bounds(w_current, o_current,
  +  if ( !world_get_object_list_bounds(w_current, o_current,
                              &lleft, &ltop,
  -                           &lright, &lbottom);
  +                                     &lright, &lbottom)) {
  +    return;
  +  }
   
   #if DEBUG
     printf("in a_zoom_extents:  left: %d, right: %d, top: %d, bottom: %d\n",
  
  
  


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