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

gEDA-cvs: CVS update: x_event.nw



  User: ahvezda 
  Date: 05/08/19 22:15:58

  Modified:    .        x_event.nw
  Log:
  Fixed a crash when disabling the scrollbars and using a scroll wheel.
  
  
  
  
  Revision  Changes    Path
  1.20      +5 -0      eda/geda/devel/gschem/noweb/x_event.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_event.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_event.nw,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- x_event.nw	19 Feb 2005 23:27:08 -0000	1.19
  +++ x_event.nw	20 Aug 2005 02:15:58 -0000	1.20
  @@ -1483,6 +1483,11 @@
     exit_if_null(w_current);
     global_window_current = w_current;
   
  +  /* You must have scrollbars enabled if you want to use the scroll wheel */
  +  if (w_current->scrollbars_flag == FALSE) {
  +    return 0;
  +  }
  +
     /* update the state of the modifiers */
     w_current->SHIFTKEY   = (event->state & GDK_SHIFT_MASK  ) ? 1 : 0;
     w_current->CONTROLKEY = (event->state & GDK_CONTROL_MASK) ? 1 : 0;