Changeset 107 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui


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/gui/IncidentEditorFrame.java

    r104 r107  
    307307            public void windowClosing(WindowEvent e) 
    308308            { 
    309                 theIncident.setOffset(savedOffset); 
     309                //Add previous offset back in 
     310                //If we didn't adjust the offset, this will just set it to the old value 
     311                //If we deleted the first event(s), this will add the offsets, 
     312                //to ensure that events stay at the correct times 
     313                theIncident.setOffset(theIncident.offset + savedOffset); 
    310314                parent.returnFocus(); 
    311315            } 
Note: See TracChangeset for help on using the changeset viewer.