bh: thuban/Thuban/UI classgen.py,1.33,1.34

cvs@intevation.de cvs at intevation.de
Wed Dec 15 17:42:58 CET 2004


Author: bh

Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv31584/Thuban/UI

Modified Files:
	classgen.py 
Log Message:
(GenQuantilesPanel.__init__): Set the
minimum number of classes to 2.  The calculate_quantiles needs at
least two and raises an exception otherwise.  
Fixes RT#2549


Index: classgen.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/classgen.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- classgen.py	22 Apr 2004 15:45:01 -0000	1.33
+++ classgen.py	15 Dec 2004 16:42:56 -0000	1.34
@@ -832,8 +832,8 @@
                                         _("Retrieve from Table"))
 
         self.spin_numClasses = wxSpinCtrl(self, -1, style=wxTE_RIGHT)
-        self.spin_numClasses.SetRange(1, sys.maxint)
-        self.spin_numClasses.SetValue(1)
+        self.spin_numClasses.SetRange(2, sys.maxint)
+        self.spin_numClasses.SetValue(2)
 
 
         sizer = wxBoxSizer(wxHORIZONTAL)





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)