Changeset 760

Show
Ignore:
Timestamp:
05/31/07 15:50:09 (6 years ago)
Author:
ggpolo
Message:

Fixed a bug when opening viewer.py with no scans in database.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/ggpolo/umitInventory/viewer.py

    r759 r760  
    514514         
    515515        # Adjusts timeline range based on min and max timestamps from scans. 
    516         self._set_yahrange(min(timestamps), max(timestamps)) 
     516        if timestamps: 
     517            self._set_yahrange(min(timestamps), max(timestamps)) 
    517518     
    518519        self.invtree.treeview.expand_all()