Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5542

Modified Files:
        tvguide.py 
Log Message:
fix off by one error on scrolling down

Index: tvguide.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/tvguide.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** tvguide.py  20 Jun 2004 14:07:58 -0000      1.33
--- tvguide.py  28 Jun 2004 15:56:42 -0000      1.34
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.34  2004/06/28 15:56:42  dischi
+ # fix off by one error on scrolling down
+ #
  # Revision 1.33  2004/06/20 14:07:58  dischi
  # remove upsoon on changes
***************
*** 447,451 ****
                  break
  
!         channel_pos = min(len(self.guide.chan_list)-2, max(0, i+value))
  
          # calc real changed value
--- 450,454 ----
                  break
  
!         channel_pos = min(len(self.guide.chan_list)-1, max(0, i+value))
  
          # calc real changed value
***************
*** 456,460 ****
              start_channel = self.guide.chan_list[start_pos + value].id
  
!         if value > 0 and channel_pos < len(self.guide.chan_list)-2 and \
                 channel_pos + 1 >= end_pos:
              # move start channel down
--- 459,463 ----
              start_channel = self.guide.chan_list[start_pos + value].id
  
!         if value > 0 and channel_pos < len(self.guide.chan_list)-1 and \
                 channel_pos + 1 >= end_pos:
              # move start channel down



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to