Changeset 1053


Ignore:
Timestamp:
12/14/15 18:46:32 (5 years ago)
Author:
klaus
Message:

bugfix: wrong time info after stw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/modules/wx_.py

    r1031 r1053  
    158158        except AttributeError: 
    159159            id = "*" 
     160         
     161        reltimestr = "%g" % self.ScreenToRelativeTime( x, y ) 
    160162 
    161163        self.parent.SetStatusText( 
    162             "%s - %s" % (fromUTCDateTime(timestamp), id) 
     164            "%s - %s - %s" % (fromUTCDateTime(timestamp), reltimestr, id) 
    163165        ) 
    164166 
     
    442444                pixel_width = self.height - STATION_INFO - MARGINS[0] - MARGINS[2] 
    443445 
    444         duration = end - start 
     446        if self.timewindow[1] is None: 
     447            duration = end - start 
     448        else: 
     449            duration = self.timewindow[1] - self.timewindow[0] 
     450            start += self.timewindow[0] 
    445451        timestamp = None 
    446452 
Note: See TracChangeset for help on using the changeset viewer.