Ignore:
Timestamp:
03/13/12 17:50:08 (2 years ago)
Author:
miha
Branch:
default
rebase_source:
c69f852975ae8d5fd6b9a3e1d44a89d5ff95ab93
Message:

Fixed a bug if matrix.items was None.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWNxHist.py

    r10509 r10511  
    9595        if data == None: return 
    9696 
     97        if not hasattr(data, "items") or data.items is None: 
     98            setattr(data, "items", [i for i in range(data.dim)]) 
     99 
    97100        self.matrix = data 
    98101        # draw histogram 
     
    180183            matrix = self.matrix 
    181184 
    182             if hasattr(self.matrix, "items"): 
     185            if hasattr(self.matrix, "items") and self.matrix.items is not None: 
    183186                if type(self.matrix.items) == Orange.data.Table: 
    184187                    graph.set_items(self.matrix.items) 
Note: See TracChangeset for help on using the changeset viewer.