[Spambayes-checkins] spambayes/Outlook2000/dialogs FilterDialog.py, 1.19, 1.20

Mark Hammond mhammond at users.sourceforge.net
Tue Jul 29 21:31:18 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv13135

Modified Files:
	FilterDialog.py 
Log Message:
Avoid passing a float to C functions that take an int (the slider pos)


Index: FilterDialog.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/FilterDialog.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** FilterDialog.py	18 Jul 2003 06:25:48 -0000	1.19
--- FilterDialog.py	30 Jul 2003 03:31:11 -0000	1.20
***************
*** 231,235 ****
          edit = self.GetDlgItem(idc_edit)
          try:
!             val = float(edit.GetWindowText())
          except ValueError:
              return
--- 231,237 ----
          edit = self.GetDlgItem(idc_edit)
          try:
!             # Get as float so we dont fail should the .0 be there, but
!             # then convert to int as the slider only works with ints
!             val = int(float(edit.GetWindowText()))
          except ValueError:
              return





More information about the Spambayes-checkins mailing list