Changeset 107 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/TimeSlice.java


Ignore:
Timestamp:
09/05/2017 01:18:00 PM (9 years ago)
Author:
bmcguffin
Message:

Fixed a bug where deleting the first timeslice of an incident would not alter the reported start time of the incident.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/structures/TimeSlice.java

    r89 r107  
    297297                || ev instanceof WitnessEvent || ev instanceof CADEvent; 
    298298    } 
     299     
     300    public void checkEmpty() 
     301    { 
     302        if (this.events.isEmpty()) 
     303        { 
     304            this.thisIncident.removeTimeSlice(this.seconds); 
     305        } 
     306    } 
    299307} 
Note: See TracChangeset for help on using the changeset viewer.