/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/classgen.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/classgen.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 613 by jonathan, Fri Apr 4 12:16:57 2003 UTC revision 614 by jonathan, Mon Apr 7 08:56:38 2003 UTC
# Line 347  class ClassGenerator: Line 347  class ClassGenerator:
347          if numGroups == 0: return clazz          if numGroups == 0: return clazz
348    
349          for value, prop in zip(list, PropertyRamp(numGroups, prop1, prop2)):          for value, prop in zip(list, PropertyRamp(numGroups, prop1, prop2)):
350              clazz.AddGroup(ClassGroupSingleton(value, prop))              clazz.AppendGroup(ClassGroupSingleton(value, prop))
351    
352          return clazz          return clazz
353    
# Line 369  class ClassGenerator: Line 369  class ClassGenerator:
369    
370              # this check guards against rounding issues              # this check guards against rounding issues
371              if cur_min != cur_max:              if cur_min != cur_max:
372                  clazz.AddGroup(ClassGroupRange(cur_min, cur_max, prop))                  clazz.AppendGroup(ClassGroupRange(cur_min, cur_max, prop))
373    
374              cur_min = cur_max              cur_min = cur_max
375              cur_max += step              cur_max += step

Legend:
Removed from v.613  
changed lines
  Added in v.614

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26